mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Merge pull request #6962 from spycrab/qt_renderwidget_fixes
Qt: Fix stop emulation confirmation prompt bugs
This commit is contained in:
@ -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 "
|
||||||
|
Reference in New Issue
Block a user