when target add deck changed, switch review deck too (#695)

This commit is contained in:
Damien Elmes 2013-04-11 17:13:39 +09:00
parent dcf38f2f10
commit db262031c3

View File

@ -70,6 +70,9 @@ class DeckChooser(QHBoxLayout):
title=_("Choose Deck"), help="addingnotes",
cancel=False, parent=self.widget)
self.deck.setText(ret.name)
deck = self.mw.col.decks.byName(ret.name)
self.mw.col.decks.select(deck['id'])
self.mw.requireReset()
def selectedId(self):
# save deck name