mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-16 16:21:02 +00:00
Qt: notify progress dialog cancelation when closing the game window
This commit is contained in:
parent
ac869ec855
commit
57324f1703
@ -614,6 +614,9 @@ void gs_frame::close()
|
|||||||
|
|
||||||
if (!Emu.IsStopped())
|
if (!Emu.IsStopped())
|
||||||
{
|
{
|
||||||
|
// Notify progress dialog cancellation
|
||||||
|
g_system_progress_canceled = true;
|
||||||
|
|
||||||
// Blocking shutdown request. Obsolete, but I'm keeping it here as last resort.
|
// Blocking shutdown request. Obsolete, but I'm keeping it here as last resort.
|
||||||
Emu.after_kill_callback = [this](){ deleteLater(); };
|
Emu.after_kill_callback = [this](){ deleteLater(); };
|
||||||
Emu.GracefulShutdown(true);
|
Emu.GracefulShutdown(true);
|
||||||
@ -1112,6 +1115,9 @@ bool gs_frame::event(QEvent* ev)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Notify progress dialog cancellation
|
||||||
|
g_system_progress_canceled = true;
|
||||||
|
|
||||||
// Issue async shutdown
|
// Issue async shutdown
|
||||||
Emu.GracefulShutdown(true, true);
|
Emu.GracefulShutdown(true, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user