make sure we don't show 'add' in note type selection

This commit is contained in:
Damien Elmes 2012-05-25 11:49:50 +09:00
parent 043fc86fa7
commit 81b01f309c

View file

@ -21,6 +21,7 @@ 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))
if buttons:
for b in buttons: for b in buttons:
self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole) self.form.buttonBox.addButton(b, QDialogButtonBox.ActionRole)
else: else: