From 67c2ccc9546c5452c1e515c00be77a9b6d6b6cf6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 26 Nov 2011 08:12:59 +0900 Subject: [PATCH] should init profile regardless of upgrade being required or not --- aqt/main.py | 2 ++ aqt/upgrade.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/main.py b/aqt/main.py index d2ce09d1c..2d3549cd2 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -35,6 +35,8 @@ class AnkiQt(QMainWindow): self.setupLang(force=self.pm.meta['defaultLang']) # running 2.0 for the first time? if self.pm.meta['firstRun']: + # load the new deck user profile + self.pm.load(self.pm.profiles()[0]) # upgrade if necessary from aqt.upgrade import Upgrader u = Upgrader(self) diff --git a/aqt/upgrade.py b/aqt/upgrade.py index 64947aaf8..02b5a2878 100644 --- a/aqt/upgrade.py +++ b/aqt/upgrade.py @@ -19,8 +19,6 @@ class Upgrader(object): # does an old config file exist? if not os.path.exists(p): return - # load the new deck user profile - self.mw.pm.load(self.mw.pm.profiles()[0]) # load old settings and copy over self._loadConf(p) self._copySettings()