mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix state not being saveable on separate window close
This commit is contained in:
parent
fce3414c65
commit
8857eb4e78
|
@ -375,7 +375,7 @@ bool DisplayWidget::event(QEvent* event)
|
||||||
{
|
{
|
||||||
// Closing the separate widget will either cancel the close, or trigger shutdown.
|
// 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.
|
// 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();
|
event->ignore();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -447,7 +447,7 @@ bool DisplayContainer::event(QEvent* event)
|
||||||
{
|
{
|
||||||
// Closing the separate widget will either cancel the close, or trigger shutdown.
|
// 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.
|
// 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();
|
event->ignore();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue