@@ -1283,9 +1283,9 @@ void MainWindow::promptForDiscChange(const QString& path)
12831283 SystemLock lock (pauseAndLockSystem ());
12841284
12851285 QMessageBox* const mb =
1286- QtUtils::NewMessageBox (QMessageBox::Question, tr (" Confirm Disc Change" ),
1286+ QtUtils::NewMessageBox (lock. getDialogParent (), QMessageBox::Question, tr (" Confirm Disc Change" ),
12871287 tr (" Do you want to swap discs or boot the new image (via system reset)?" ),
1288- QMessageBox::NoButton, QMessageBox::NoButton, lock. getDialogParent () );
1288+ QMessageBox::NoButton, QMessageBox::NoButton);
12891289
12901290 /* const QAbstractButton* const swap_button = */ mb->addButton (tr (" Swap Disc" ), QMessageBox::YesRole);
12911291 const QAbstractButton* const reset_button = mb->addButton (tr (" Reset" ), QMessageBox::NoRole);
@@ -3065,11 +3065,11 @@ void MainWindow::requestShutdown(bool allow_confirm, bool allow_save_to_state, b
30653065
30663066 SystemLock lock (pauseAndLockSystem ());
30673067
3068- QMessageBox* msgbox =
3069- QtUtils::NewMessageBox ( QMessageBox::Question, quit_afterwards ? tr (" Confirm Exit" ) : tr (" Confirm Close" ),
3070- quit_afterwards ? tr (" Are you sure you want to exit the application?" ) :
3071- tr (" Are you sure you want to close the current game?" ),
3072- QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes, lock. getDialogParent () );
3068+ QMessageBox* const msgbox = QtUtils::NewMessageBox (
3069+ lock. getDialogParent (), QMessageBox::Question, quit_afterwards ? tr (" Confirm Exit" ) : tr (" Confirm Close" ),
3070+ quit_afterwards ? tr (" Are you sure you want to exit the application?" ) :
3071+ tr (" Are you sure you want to close the current game?" ),
3072+ QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
30733073
30743074 QCheckBox* const save_cb = new QCheckBox (tr (" Save State For Resume" ), msgbox);
30753075 save_cb->setChecked (allow_save_to_state && save_state);
0 commit comments