mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
Merge pull request #264 from dlon/close-deck-chooser
Close deck chooser without changing the deck
This commit is contained in:
commit
a8e7c0c31b
2 changed files with 2 additions and 3 deletions
|
|
@ -75,6 +75,7 @@ class DeckChooser(QHBoxLayout):
|
|||
self.mw, current=current, accept=_("Choose"),
|
||||
title=_("Choose Deck"), help="addingnotes",
|
||||
cancel=False, parent=self.widget, geomKey="selectDeck")
|
||||
if ret.name:
|
||||
self.setDeckName(ret.name)
|
||||
|
||||
def setDeckName(self, name):
|
||||
|
|
|
|||
|
|
@ -114,8 +114,6 @@ class StudyDeck(QDialog):
|
|||
def reject(self):
|
||||
saveGeom(self, self.geomKey)
|
||||
remHook('reset', self.onReset)
|
||||
if not self.cancel:
|
||||
return self.accept()
|
||||
QDialog.reject(self)
|
||||
|
||||
def onAddDeck(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue