diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-04 09:23:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-04 09:23:06 +0100 |
commit | 4a2d23c14089cb98901e3df535037f7d8095e9a7 (patch) | |
tree | b8f2f00e62a3575eb24853ea2dc83989b4d3195d /gui/main.cpp | |
parent | 89a18bbb9a42d7bb54efe292bdc4f792176008fb (diff) |
main: workaround crash on exit without terminating process
Diffstat (limited to 'gui/main.cpp')
-rw-r--r-- | gui/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index 3739232f..5d43cc14 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -202,7 +202,8 @@ main(int argc, char** argv) while (false); // msvc crashes in Qt plugin system's dtor -#if defined(_MSC_VER) + // Note: QLibrary::PreventUnloadHint seems to workaround it +#if defined(_MSC_VER) && 0 qDebug() << "exit: terminating"; TerminateProcess(GetCurrentProcess(), 0); #endif |