Skip to content

Commit df6d5fe

Browse files
authored
Merge pull request #326 from ales-erjavec/fixes/restart
[FIX] addons: Use QTimer.singleShot to exit/restart
2 parents e9297c5 + 2998105 commit df6d5fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orangecanvas/application/addons.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,8 @@ def restart():
963963
icon=QMessageBox.Information
964964
).exec()
965965
else:
966-
QApplication.exit(96)
966+
# Sometimes it doesn't actually exit unless this call is queued
967+
QTimer.singleShot(0, lambda: QApplication.exit(96))
967968

968969
QTimer.singleShot(0, restart)
969970
else:

0 commit comments

Comments
 (0)