Commit 69240463f1db33639b4eb3653b26c392ae0ea979
1 parent
9aec8572
fixed #107
Showing
1 changed file
with
6 additions
and
1 deletions
openbr/openbr_plugin.cpp
| ... | ... | @@ -1027,8 +1027,13 @@ void br::Context::messageHandler(QtMsgType type, const QMessageLogContext &conte |
| 1027 | 1027 | Globals->logFile.flush(); |
| 1028 | 1028 | } |
| 1029 | 1029 | |
| 1030 | - if (type == QtFatalMsg) | |
| 1030 | + if (type == QtFatalMsg) { | |
| 1031 | +#ifdef _WIN32 | |
| 1032 | + QCoreApplication::quit(); // abort() hangs the console on Windows for some reason related to the event loop not being exited | |
| 1033 | +#else // not _WIN32 | |
| 1031 | 1034 | abort(); // We abort so we can get a stack trace back to the code that triggered the message. |
| 1035 | +#endif // _WIN32 | |
| 1036 | + } | |
| 1032 | 1037 | } |
| 1033 | 1038 | |
| 1034 | 1039 | Context *br::Globals = NULL; | ... | ... |