+ use QApplication instead of qApp

This commit is contained in:
wmayer 2014-12-22 12:30:44 +01:00
parent 5478c0fdfe
commit 491ea2b52a

View File

@ -46,7 +46,7 @@ except ImportError:
def getMainWindow():
""" Return the FreeCAD main window. """
toplevel = PySide.QtGui.qApp.topLevelWidgets()
toplevel = PySide.QtGui.QApplication.topLevelWidgets()
for i in toplevel:
if i.metaObject().className() == "Gui::MainWindow":
return i