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
@ -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 New Issue
Block a user