Skip to content
Browse files

Changed test for existing QtCoreApplication to workaround apparent bu…

…g when a QtCoreApplication has been created rather than a QtApplication
  • Loading branch information...
1 parent 385936b commit c0fb3adadf2ab3baebdbe1166496cf4a157cb7d0 Daniel Ashbrook committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 qt4reactor.py
View
2 qt4reactor.py
@@ -135,7 +135,7 @@ def __init__(self):
self._timer.setSingleShot(True)
QObject.connect(self._timer, SIGNAL("timeout()"), self.iterate)
- if QCoreApplication.startingUp():
+ if QCoreApplication.instance() is None:
# Application Object has not been started yet
self.qApp=QCoreApplication([])
self._ownApp=True

0 comments on commit c0fb3ad

Please sign in to comment.
Something went wrong with that request. Please try again.