mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -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 <QApplication>
|
||||||
|
|
||||||
#include "widgets/MessageBox.hpp"
|
#include "Logger.hpp"
|
||||||
|
|
||||||
class QObject;
|
class QObject;
|
||||||
class QEvent;
|
class QEvent;
|
||||||
@ -31,12 +31,12 @@ public:
|
|||||||
}
|
}
|
||||||
catch (std::exception const& e)
|
catch (std::exception const& e)
|
||||||
{
|
{
|
||||||
MessageBox::critical_message (nullptr, "Fatal error", e.what ());
|
LOG_FATAL (e.what ());
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
MessageBox::critical_message (nullptr, "Unexpected fatal error");
|
LOG_FATAL ("Unexpected fatal error");
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user