move errorOccurred up the top

This commit is contained in:
Damien Elmes 2009-04-16 17:17:16 +09:00
parent 783e9ceac9
commit 8259347f34

View file

@ -31,6 +31,7 @@ config = ankiqt.config
class AnkiQt(QMainWindow): class AnkiQt(QMainWindow):
def __init__(self, app, config, args): def __init__(self, app, config, args):
QMainWindow.__init__(self) QMainWindow.__init__(self)
self.errorOccurred = False
if sys.platform.startswith("darwin"): if sys.platform.startswith("darwin"):
qt_mac_set_menubar_icons(False) qt_mac_set_menubar_icons(False)
ankiqt.mw = self ankiqt.mw = self
@ -69,7 +70,6 @@ class AnkiQt(QMainWindow):
self.moveToState("auto") self.moveToState("auto")
# check for updates # check for updates
ui.splash.update() ui.splash.update()
self.errorOccurred = False
self.setupErrorHandler() self.setupErrorHandler()
self.setupMisc() self.setupMisc()
self.loadPlugins() self.loadPlugins()