Merge pull request #6962 from spycrab/qt_renderwidget_fixes
Qt: Fix stop emulation confirmation prompt bugs
This commit is contained in:
commit
89ec040b1a
|
@ -601,13 +601,13 @@ bool MainWindow::RequestStop()
|
||||||
const Core::State state = Core::GetState();
|
const Core::State state = Core::GetState();
|
||||||
|
|
||||||
// Only pause the game, if NetPlay is not running
|
// Only pause the game, if NetPlay is not running
|
||||||
bool pause = Settings::Instance().GetNetPlayClient() != nullptr;
|
bool pause = !m_netplay_dialog->isVisible();
|
||||||
|
|
||||||
if (pause)
|
if (pause)
|
||||||
Core::SetState(Core::State::Paused);
|
Core::SetState(Core::State::Paused);
|
||||||
|
|
||||||
QMessageBox::StandardButton confirm;
|
QMessageBox::StandardButton confirm;
|
||||||
confirm = QMessageBox::question(m_render_widget, tr("Confirm"),
|
confirm = QMessageBox::question(this, tr("Confirm"),
|
||||||
m_stop_requested ?
|
m_stop_requested ?
|
||||||
tr("A shutdown is already in progress. Unsaved data "
|
tr("A shutdown is already in progress. Unsaved data "
|
||||||
"may be lost if you stop the current emulation "
|
"may be lost if you stop the current emulation "
|
||||||
|
|
Loading…
Reference in New Issue