diff --git a/src/calibre/gui2/splash.py b/src/calibre/gui2/splash.py index a8777b66d4..785e7a0101 100644 --- a/src/calibre/gui2/splash.py +++ b/src/calibre/gui2/splash.py @@ -135,13 +135,14 @@ class CalibreSplashScreen(QSplashScreen): def main(): os.closerange(3, 256) - from calibre.gui2 import Application - app = Application([]) + app = QApplication([]) s = CalibreSplashScreen() s.show_message.connect(s.showMessage, type=Qt.QueuedConnection) s.shutdown.connect(app.quit, type=Qt.QueuedConnection) s.show() - Thread(target=run_loop, args=(s,)).start() + t = Thread(target=run_loop, args=(s,)) + t.daemon = True + t.start() app.exec_() if isosx: