From 45e1a8756faa831acfa7f63346ccd859f31d417d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 30 Jun 2020 01:14:37 +0200 Subject: [PATCH] patch_manager: fix import dialog close button --- rpcs3/rpcs3qt/patch_manager_dialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rpcs3/rpcs3qt/patch_manager_dialog.cpp b/rpcs3/rpcs3qt/patch_manager_dialog.cpp index db80c3338b..1e42d14c56 100644 --- a/rpcs3/rpcs3qt/patch_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/patch_manager_dialog.cpp @@ -667,9 +667,10 @@ void patch_manager_dialog::dropEvent(QDropEvent* event) return; } - QMessageBox box(QMessageBox::Icon::Question, tr("Patch Manager"), tr("What do you want to do with the patch file?"), QMessageBox::StandardButton::NoButton, this); - QAbstractButton* button_yes = box.addButton(tr("Import"), QMessageBox::YesRole); - QAbstractButton* button_no = box.addButton(tr("Validate"), QMessageBox::NoRole); + QMessageBox box(QMessageBox::Icon::Question, tr("Patch Manager"), tr("What do you want to do with the patch file?"), QMessageBox::StandardButton::Cancel, this); + QPushButton* button_yes = box.addButton(tr("Import"), QMessageBox::YesRole); + QPushButton* button_no = box.addButton(tr("Validate"), QMessageBox::NoRole); + box.setDefaultButton(button_yes); box.exec(); const bool do_import = box.clickedButton() == button_yes;