Skip to content

Commit 12fff66

Browse files
committed
fix splash server exit when testing
1 parent 0010575 commit 12fff66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

splash/qtutils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ def awake(self):
139139
diff = time.time() - self.blockedAt
140140
log.msg("awake; block time: %0.4f" % diff, system="QAbstractEventDispatcher")
141141
_qtapp = QApp(sys.argv)
142+
# we have to set this, because otherwise the program may quit when
143+
# the last web view window is closed.
144+
_qtapp.setQuitOnLastWindowClosed(False)
142145
return _qtapp
143146

144147

0 commit comments

Comments
 (0)