fix deckPath=none error for clockoff case

This commit is contained in:
Damien Elmes 2010-10-02 11:38:19 +09:00
parent 3a9bff8e11
commit 39ed7ff44e

View file

@ -2240,7 +2240,7 @@ Are you sure?""" % deckName),
# after sync all, so refresh browser list
self.browserLastRefreshed = 0
self.moveToState("noDeck")
elif self.loadAfterSync:
elif self.loadAfterSync and self.deckPath:
if self.loadAfterSync == 2:
name = re.sub("[<>]", "", self.syncName)
p = os.path.join(self.documentDir, name + ".anki")