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:
Marek Marczykowski 2013-03-10 14:59:41 +01:00
parent 844cb21544
commit b48446d99f

View File

@ -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: