Quit hard on second SDL_QUIT input even if dialogs are shown

This commit is contained in:
def 2020-10-02 18:02:10 +02:00
parent 6839e5f20d
commit 512d146d56

View file

@ -3196,7 +3196,12 @@ void CClient::Run()
// update input // update input
if(Input()->Update()) if(Input()->Update())
{
if(State() == IClient::STATE_QUITTING)
break;
else
SetState(IClient::STATE_QUITTING); // SDL_QUIT SetState(IClient::STATE_QUITTING); // SDL_QUIT
}
#if defined(CONF_AUTOUPDATE) #if defined(CONF_AUTOUPDATE)
Updater()->Update(); Updater()->Update();
#endif #endif