make sure we switch back to old deck when filt. cancelled (#338)

This commit is contained in:
Damien Elmes 2013-01-30 18:27:34 +09:00
parent 983c9b21cf
commit c67c932c64

View file

@ -722,8 +722,8 @@ and check the statistics for a home deck instead."""))
def onCram(self, search=""):
import aqt.dyndeckconf
n = 1
if not search:
deck = self.col.decks.current()
if not search:
if not deck['dyn']:
search = 'deck:"%s" ' % deck['name']
decks = self.col.decks.allNames()
@ -735,6 +735,7 @@ and check the statistics for a home deck instead."""))
if not diag.ok:
# user cancelled first config
self.col.decks.rem(did)
self.col.decks.select(deck['id'])
else:
self.moveToState("overview")