mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 11:31:51 -05:00
Avoid GUI actions when crashing out with an uncaught exception
This commit is contained in:
parent
c1e1f3d46c
commit
9fe3c7123e
@ -3,7 +3,7 @@
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
#include "widgets/MessageBox.hpp"
|
||||
#include "Logger.hpp"
|
||||
|
||||
class QObject;
|
||||
class QEvent;
|
||||
@ -31,12 +31,12 @@ public:
|
||||
}
|
||||
catch (std::exception const& e)
|
||||
{
|
||||
MessageBox::critical_message (nullptr, "Fatal error", e.what ());
|
||||
LOG_FATAL (e.what ());
|
||||
throw;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
MessageBox::critical_message (nullptr, "Unexpected fatal error");
|
||||
LOG_FATAL ("Unexpected fatal error");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user