From 94cdd4d609b1f33f17205a305bd7ab334b6db8a8 Mon Sep 17 00:00:00 2001 From: Sacha Date: Thu, 15 May 2014 17:47:33 +1000 Subject: [PATCH] Qt: Use Qt's exit routine which returns exec() and allows clean exit. --- base/QtMain.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/base/QtMain.cpp b/base/QtMain.cpp index c2048d21da..265a5ed2a9 100644 --- a/base/QtMain.cpp +++ b/base/QtMain.cpp @@ -56,11 +56,8 @@ std::string System_GetProperty(SystemProperty prop) { } void System_SendMessage(const char *command, const char *parameter) { - // TODO: Cleaner exit if (!strcmp(command, "finish")) { - NativeShutdown(); - net::Shutdown(); - exit(0); + qApp->exit(0); } }