diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-24 12:56:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-24 12:57:16 +0200 |
commit | bc4cb51ccb27aaac1687e3e3255c7321e28d0a33 (patch) | |
tree | 4dfa6301dd9eae8791503e13059b14d95754de15 /gui/main.cpp | |
parent | 9762ccffa4df162d8574d76749d21d09b57c52ad (diff) |
gui/main: put TerminateProcess call back after app exits
Diffstat (limited to 'gui/main.cpp')
-rw-r--r-- | gui/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index a70abde2..99f63267 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -185,18 +185,18 @@ main(int argc, char** argv) app.setQuitOnLastWindowClosed(false); app.exec(); - // msvc crashes in Qt plugin system's dtor -#if defined(_MSC_VER) - qDebug() << "exit: terminating"; - TerminateProcess(GetCurrentProcess(), 0); -#endif - app.exit(0); qDebug() << "exit: window"; } while (false); + // msvc crashes in Qt plugin system's dtor +#if defined(_MSC_VER) + qDebug() << "exit: terminating"; + TerminateProcess(GetCurrentProcess(), 0); +#endif + qDebug() << "exit: main()"; return 0; |