mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
force default button in record dialog
https://anki.tenderapp.com/discussions/ankidesktop/34985-make-save-the-default-option-when-recording-audio
This commit is contained in:
parent
00f171e6c3
commit
7a9508ea75
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ def getAudio(parent, encode=True):
|
|||
mb.setIconPixmap(QPixmap(":/icons/media-record.png"))
|
||||
but = QPushButton(_("Save"))
|
||||
mb.addButton(but, QMessageBox.AcceptRole)
|
||||
but.setDefault(True)
|
||||
but = QPushButton(_("Cancel"))
|
||||
mb.addButton(but, QMessageBox.RejectRole)
|
||||
mb.setEscapeButton(but)
|
||||
|
|
Loading…
Reference in a new issue