allow canceling of note type selection (#849)

This commit is contained in:
Damien Elmes 2013-05-16 13:56:21 +09:00
parent 0dceb0ce22
commit 254a2ecad6

View file

@ -69,7 +69,7 @@ class ModelChooser(QHBoxLayout):
self.mw, names=nameFunc,
accept=_("Choose"), title=_("Choose Note Type"),
help="_notes", current=current, parent=self.widget,
buttons=[edit], cancel=False)
buttons=[edit], cancel=True)
if not ret.name:
return
m = self.deck.models.byName(ret.name)