diff --git a/src/calibre/gui2/splash_screen.py b/src/calibre/gui2/splash_screen.py index b0f64f2406..5554820439 100644 --- a/src/calibre/gui2/splash_screen.py +++ b/src/calibre/gui2/splash_screen.py @@ -113,7 +113,7 @@ def keyPressEvent(self, ev): if not self.develop: return QSplashScreen.keyPressEvent(self, ev) ev.accept() - QApplication.instance().quit() + QApplication.instance().exit() def main(): diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index ba8aeecdcf..a0434e8e37 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -1882,7 +1882,7 @@ def quit(self): if not self.confirm_quit(): return False self.shutdown() - QApplication.instance().quit() + QApplication.instance().exit() return True def confirm_quit(self): @@ -1935,7 +1935,7 @@ def abort_terminal_save(self): def check_terminal_save(self): if self.doing_terminal_save and not self.save_manager.has_tasks: # terminal save could have been aborted self.shutdown() - QApplication.instance().quit() + QApplication.instance().exit() def shutdown(self): self.save_state() diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index d11e8bf700..650573864f 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -1075,7 +1075,7 @@ def quit(self, checked=True, restart=False, debug_on_restart=False, if self.system_tray_icon is not None and self.restart_after_quit: # Needed on windows to prevent multiple systray icons self.system_tray_icon.setVisible(False) - QApplication.instance().quit() + QApplication.instance().exit() def donate(self, *args): from calibre.utils.localization import localize_website_link