Mark "Yes" as default answer for qrexec policy ask dialog
In KDE it already was default, but in XFCE no, so make this explicit.
This commit is contained in:
parent
844cb21544
commit
b48446d99f
@ -46,7 +46,7 @@ def ask(text, title="Question", yestoall=False):
|
||||
if yestoall:
|
||||
buttons |= QMessageBox.YesToAll
|
||||
|
||||
reply = QMessageBox.question(None, title, text, buttons)
|
||||
reply = QMessageBox.question(None, title, text, buttons, defaultButton=QMessageBox.Yes)
|
||||
if reply == QMessageBox.Yes:
|
||||
return 0
|
||||
elif reply == QMessageBox.No:
|
||||
|
Loading…
Reference in New Issue
Block a user