mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix -nogui/-batch closing
This commit is contained in:
parent
84d7fe550b
commit
1b40e4aaca
|
@ -1241,7 +1241,8 @@ void Host::RequestVMShutdown(bool allow_confirm, bool allow_save_state, bool def
|
|||
if (!VMManager::HasValidVM())
|
||||
return;
|
||||
|
||||
if (allow_confirm)
|
||||
// MainWindow handles close-on-exit for batch mode.
|
||||
if (allow_confirm || QtHost::InBatchMode())
|
||||
{
|
||||
// Run it on the host thread, that way we get the confirm prompt (if enabled).
|
||||
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Qt::QueuedConnection, Q_ARG(bool, allow_confirm),
|
||||
|
|
Loading…
Reference in New Issue