mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use Yes/No for confirm_delete dialogs
This commit is contained in:
parent
2bedd3bfb2
commit
aca602c118
@ -40,9 +40,10 @@ class Dialog(QDialog):
|
||||
a.stateChanged.connect(self.toggle)
|
||||
l.addWidget(a)
|
||||
|
||||
buttons = QDialogButtonBox.Ok
|
||||
if show_cancel_button:
|
||||
buttons |= QDialogButtonBox.Cancel
|
||||
buttons = QDialogButtonBox.Yes | QDialogButtonBox.No
|
||||
else:
|
||||
buttons = QDialogButtonBox.Ok
|
||||
self.buttonBox = bb = QDialogButtonBox(buttons, self)
|
||||
bb.setObjectName("buttonBox")
|
||||
bb.setFocus(Qt.OtherFocusReason)
|
||||
|
Loading…
x
Reference in New Issue
Block a user