should init profile regardless of upgrade being required or not

This commit is contained in:
Damien Elmes 2011-11-26 08:12:59 +09:00
parent 11f95139f4
commit 67c2ccc954
2 changed files with 2 additions and 2 deletions

View file

@ -35,6 +35,8 @@ class AnkiQt(QMainWindow):
self.setupLang(force=self.pm.meta['defaultLang']) self.setupLang(force=self.pm.meta['defaultLang'])
# running 2.0 for the first time? # running 2.0 for the first time?
if self.pm.meta['firstRun']: if self.pm.meta['firstRun']:
# load the new deck user profile
self.pm.load(self.pm.profiles()[0])
# upgrade if necessary # upgrade if necessary
from aqt.upgrade import Upgrader from aqt.upgrade import Upgrader
u = Upgrader(self) u = Upgrader(self)

View file

@ -19,8 +19,6 @@ class Upgrader(object):
# does an old config file exist? # does an old config file exist?
if not os.path.exists(p): if not os.path.exists(p):
return return
# load the new deck user profile
self.mw.pm.load(self.mw.pm.profiles()[0])
# load old settings and copy over # load old settings and copy over
self._loadConf(p) self._loadConf(p)
self._copySettings() self._copySettings()