Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def has_ui(self):
# a QApplication has been created.
if self._has_qt:
from tank.platform.qt import QtGui
return QtGui.qApp is not None
return QtGui.QApplication.instance() is not None
else:
return False

Expand Down Expand Up @@ -129,7 +129,7 @@ def execute_command(self, cmd_key, args):

# start up our QApp now, if none is already running
qt_application = None
if not QtGui.qApp:
if not QtGui.QApplication.instance():
QtGui.QApplication.setLibraryPaths([])
qt_application = QtGui.QApplication([])
qt_application.setWindowIcon(QtGui.QIcon(self.icon_256))
Expand Down