From b85f50ffab5a388eb976cbaf52de8fae25d546f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 27 Apr 2013 11:51:34 +0200 Subject: [PATCH] Platform::Sdl2Application: properly handle SDL_QUIT. F'ed up in 6fd8dc86ada2c098b1988c0cbee84f4102095b5c, the app didn't respond to closing the window. --- src/Platform/Sdl2Application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Platform/Sdl2Application.cpp b/src/Platform/Sdl2Application.cpp index 57f872ac8..803928ece 100644 --- a/src/Platform/Sdl2Application.cpp +++ b/src/Platform/Sdl2Application.cpp @@ -169,7 +169,9 @@ void Sdl2Application::mainLoop() { break; } - case SDL_QUIT: return; + case SDL_QUIT: + flags |= Flag::Exit; + return; } }