Damien Elmes 2019-07-12 17:37:25 +10:00
parent 00f171e6c3
commit 7a9508ea75

View File

@ -25,6 +25,7 @@ def getAudio(parent, encode=True):
mb.setIconPixmap(QPixmap(":/icons/media-record.png")) mb.setIconPixmap(QPixmap(":/icons/media-record.png"))
but = QPushButton(_("Save")) but = QPushButton(_("Save"))
mb.addButton(but, QMessageBox.AcceptRole) mb.addButton(but, QMessageBox.AcceptRole)
but.setDefault(True)
but = QPushButton(_("Cancel")) but = QPushButton(_("Cancel"))
mb.addButton(but, QMessageBox.RejectRole) mb.addButton(but, QMessageBox.RejectRole)
mb.setEscapeButton(but) mb.setEscapeButton(but)