Qt: Fix state not being saveable on separate window close

This commit is contained in:
Connor McLaughlin 2022-07-12 13:05:49 +10:00 committed by refractionpcsx2
parent fce3414c65
commit 8857eb4e78
1 changed files with 2 additions and 2 deletions

View File

@ -375,7 +375,7 @@ bool DisplayWidget::event(QEvent* event)
{
// Closing the separate widget will either cancel the close, or trigger shutdown.
// In the latter case, it's going to destroy us, so don't let Qt do it first.
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Q_ARG(bool, true), Q_ARG(bool, false), Q_ARG(bool, false));
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Q_ARG(bool, true), Q_ARG(bool, true), Q_ARG(bool, false));
event->ignore();
return true;
}
@ -447,7 +447,7 @@ bool DisplayContainer::event(QEvent* event)
{
// Closing the separate widget will either cancel the close, or trigger shutdown.
// In the latter case, it's going to destroy us, so don't let Qt do it first.
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Q_ARG(bool, true), Q_ARG(bool, false), Q_ARG(bool, false));
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Q_ARG(bool, true), Q_ARG(bool, true), Q_ARG(bool, false));
event->ignore();
return true;
}