mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
make sure we don't show 'add' in note type selection
This commit is contained in:
parent
043fc86fa7
commit
81b01f309c
1 changed files with 3 additions and 2 deletions
|
@ -21,8 +21,9 @@ class StudyDeck(QDialog):
|
||||||
if not cancel:
|
if not cancel:
|
||||||
self.form.buttonBox.removeButton(
|
self.form.buttonBox.removeButton(
|
||||||
self.form.buttonBox.button(QDialogButtonBox.Cancel))
|
self.form.buttonBox.button(QDialogButtonBox.Cancel))
|
||||||
for b in buttons:
|
if buttons:
|
||||||
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
for b in buttons:
|
||||||
|
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
|
||||||
else:
|
else:
|
||||||
b = QPushButton(_("Add"))
|
b = QPushButton(_("Add"))
|
||||||
b.setShortcut(QKeySequence("Ctrl+N"))
|
b.setShortcut(QKeySequence("Ctrl+N"))
|
||||||
|
|
Loading…
Reference in a new issue