make sure splash is shown on win32, use finish() instead of hide

This commit is contained in:
Damien Elmes 2009-02-26 03:16:18 +09:00
parent 3183fd2985
commit 44412c72e4
2 changed files with 2 additions and 1 deletions

View file

@ -60,6 +60,7 @@ def run():
pixmap = QPixmap(":/icons/anki-logo.png")
ui.splash = QSplashScreen(pixmap)
ui.splash.show()
app.processEvents()
# setup paths for forms, icons

View file

@ -76,7 +76,7 @@ class AnkiQt(QMainWindow):
except:
ui.utils.showWarning(_("Broken plugin:\n\n%s") %
traceback.format_exc())
ui.splash.hide()
ui.splash.finish(self)
self.show()
def setupMainWindow(self):