mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
allow canceling of note type selection (#849)
This commit is contained in:
parent
0dceb0ce22
commit
254a2ecad6
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class ModelChooser(QHBoxLayout):
|
||||||
self.mw, names=nameFunc,
|
self.mw, names=nameFunc,
|
||||||
accept=_("Choose"), title=_("Choose Note Type"),
|
accept=_("Choose"), title=_("Choose Note Type"),
|
||||||
help="_notes", current=current, parent=self.widget,
|
help="_notes", current=current, parent=self.widget,
|
||||||
buttons=[edit], cancel=False)
|
buttons=[edit], cancel=True)
|
||||||
if not ret.name:
|
if not ret.name:
|
||||||
return
|
return
|
||||||
m = self.deck.models.byName(ret.name)
|
m = self.deck.models.byName(ret.name)
|
||||||
|
|
Loading…
Reference in a new issue