mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-12 04:14:35 +00:00
patch_manager: fix import dialog close button
This commit is contained in:
parent
6742fad753
commit
45e1a8756f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user