Qt: Fix state not being saveable on separate window close

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-07-17 23:29:48 +01:00
1 parent fce3414c65
commit 8857eb4e78
1 file changed
+2 -2
+2 -2
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;
}