Skip to content

Commit

Permalink
Stop reactor gracefully on QApplication quit (see twisted/qt5reactor#2
Browse files Browse the repository at this point in the history
…by @estan)
  • Loading branch information
mFoxRU committed Dec 27, 2015
1 parent 6b4378f commit 4cb5adc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qtreactor/qt4base.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ def run(self, installSignalHandlers=True):
self._blockApp = QtCore.QEventLoop()
self.runReturn()
self._blockApp.exec_()
if self.running:
self.stop()
self.runUntilCurrent()


class QtEventReactor(QtReactor):
Expand Down

0 comments on commit 4cb5adc

Please sign in to comment.