make sure to mark deck active before we show its options

This commit is contained in:
Damien Elmes 2012-09-23 21:28:58 +09:00
parent f03ac89817
commit 94252dd59c

View file

@ -263,7 +263,10 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
self.show()
def _options(self, did):
self.mw.onDeckConf(self.mw.col.decks.get(did))
# select the deck first, because the dyn deck conf assumes the deck
# we're editing is the current one
self.mw.col.decks.select(did)
self.mw.onDeckConf()
def _collapse(self, did):
self.mw.col.decks.collapse(did)