From 2bc0afd82142c374885530a859a4e727371beb16 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Nov 2011 08:35:29 +0530 Subject: [PATCH] Keep the startup spalsh screen visible until the GUI has fully completed initializing. Fixes #885827 (Feature request: Startup loading progress dialog) --- src/calibre/gui2/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 5fcb39ef71..539110fb92 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -134,8 +134,9 @@ class GuiRunner(QObject): main = Main(self.opts, gui_debug=self.gui_debug) if self.splash_screen is not None: self.splash_screen.showMessage(_('Initializing user interface...')) - self.splash_screen.finish(main) main.initialize(self.library_path, db, self.listener, self.actions) + if self.splash_screen is not None: + self.splash_screen.finish(main) if DEBUG: prints('Started up in', time.time() - self.startup_time, 'with', len(db.data), 'books')