+ use QApplication instead of qApp
This commit is contained in:
parent
5478c0fdfe
commit
491ea2b52a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user