[fix][ui] confirmation button is not set as default for all desktop environments

This commit is contained in:
Vinícius Moreira
2020-01-13 16:52:40 -03:00
parent 2a00b01f14
commit be7783d6b5
2 changed files with 5 additions and 3 deletions

View File

@@ -45,6 +45,7 @@ def ask_confirmation(title: str, body: str, i18n: I18n, icon: QIcon = QIcon(reso
bt_yes = diag.addButton(i18n['popup.button.yes'], QMessageBox.YesRole)
bt_yes.setStyleSheet(css.OK_BUTTON)
diag.setDefaultButton(bt_yes)
diag.addButton(i18n['popup.button.no'], QMessageBox.NoRole)