Permalink
Browse files

Make close event trigger consistently

  • Loading branch information...
LBPHacker authored and jacob1 committed Nov 17, 2018
1 parent b41f228 commit 5a57c37ae9fd09a045380ec2db8f08978431b1fb
Showing with 1 addition and 1 deletion.
  1. +0 −1 src/PowderToySDL.cpp
  2. +1 −0 src/gui/interface/Engine.cpp
@@ -304,7 +304,6 @@ void EventProcess(SDL_Event event)
switch (event.type)
{
case SDL_QUIT:
engine->onClose();
if (engine->GetFastQuit() || engine->CloseWindow())
engine->Exit();
break;
@@ -72,6 +72,7 @@ void Engine::UnBreak()
void Engine::Exit()
{
onClose();
running_ = false;
}

0 comments on commit 5a57c37

Please sign in to comment.