Qt: Fix power off button not exiting in batch mode
This commit is contained in:
parent
3394575dca
commit
62dbaaf02c
|
@ -765,13 +765,7 @@ void QtHostInterface::powerOffSystem()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (System::IsShutdown())
|
PowerOffSystem();
|
||||||
return;
|
|
||||||
|
|
||||||
if (g_settings.save_state_on_exit)
|
|
||||||
SaveResumeSaveState();
|
|
||||||
|
|
||||||
DestroySystem();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtHostInterface::synchronousPowerOffSystem()
|
void QtHostInterface::synchronousPowerOffSystem()
|
||||||
|
|
|
@ -183,6 +183,9 @@ void CommonHostInterface::DestroySystem()
|
||||||
|
|
||||||
void CommonHostInterface::PowerOffSystem()
|
void CommonHostInterface::PowerOffSystem()
|
||||||
{
|
{
|
||||||
|
if (System::IsShutdown())
|
||||||
|
return;
|
||||||
|
|
||||||
if (g_settings.save_state_on_exit)
|
if (g_settings.save_state_on_exit)
|
||||||
SaveResumeSaveState();
|
SaveResumeSaveState();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue