Merge pull request #264 from dlon/close-deck-chooser
Close deck chooser without changing the deck
This commit is contained in:
commit
a8e7c0c31b
@ -75,7 +75,8 @@ class DeckChooser(QHBoxLayout):
|
||||
self.mw, current=current, accept=_("Choose"),
|
||||
title=_("Choose Deck"), help="addingnotes",
|
||||
cancel=False, parent=self.widget, geomKey="selectDeck")
|
||||
self.setDeckName(ret.name)
|
||||
if ret.name:
|
||||
self.setDeckName(ret.name)
|
||||
|
||||
def setDeckName(self, name):
|
||||
self.deck.setText(name.replace("&", "&&"))
|
||||
|
@ -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 New Issue
Block a user