From 512d146d5653512d99d36c9bfb45679829f6edee Mon Sep 17 00:00:00 2001 From: def Date: Fri, 2 Oct 2020 18:02:10 +0200 Subject: [PATCH] Quit hard on second SDL_QUIT input even if dialogs are shown --- src/engine/client/client.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index b92d217d4..b30cc2d50 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -3196,7 +3196,12 @@ void CClient::Run() // update input if(Input()->Update()) - SetState(IClient::STATE_QUITTING); // SDL_QUIT + { + if(State() == IClient::STATE_QUITTING) + break; + else + SetState(IClient::STATE_QUITTING); // SDL_QUIT + } #if defined(CONF_AUTOUPDATE) Updater()->Update(); #endif