Qt: Use Qt's exit routine which returns exec() and allows clean exit.

This commit is contained in:
Sacha committed 2014-05-15 17:47:33 +10:00
1 parent edaea34df1
commit 94cdd4d609
1 file changed
+1 -4
+1 -4
View File
@@ -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);
}
}