mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Don't allow application to continue after an uncaught exception
Qt does not allow exceptions to pass through the event loop so we must abort.
This commit is contained in:
parent
c6b72f497b
commit
87bca164f8
@ -31,11 +31,13 @@ public:
|
|||||||
}
|
}
|
||||||
catch (std::exception const& e)
|
catch (std::exception const& e)
|
||||||
{
|
{
|
||||||
LOG_FATAL (e.what ());
|
LOG_FATAL ("Unexpected exception caught in event loop: " << e.what ());
|
||||||
|
qFatal ("Aborting");
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
LOG_FATAL ("Unexpected fatal error");
|
LOG_FATAL ("Unexpected unknown exception caught in event loop");
|
||||||
|
qFatal ("Aborting");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user