diff --git a/ExceptionCatchingApplication.hpp b/ExceptionCatchingApplication.hpp index 657cca8c1..8b23ab4df 100644 --- a/ExceptionCatchingApplication.hpp +++ b/ExceptionCatchingApplication.hpp @@ -3,7 +3,7 @@ #include -#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; } }