summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2019-06-02 22:20:23 +0200
committerChristoph Berg <myon@debian.org>2019-06-02 22:20:23 +0200
commite6817de24bdd0a9f5677b07d6bff897a5db47794 (patch)
tree1eba79fe1a06ab93d1025297cee39e95dfab98a4 /main.cpp
parent58a14345036378f9040e269fa276ba0c97795037 (diff)
parent851b658298afb9bafeda98ffbfa2ade612c656be (diff)
Update upstream source from tag 'upstream/2.1.0_rc6+repack'
Update to upstream version '2.1.0~rc6+repack' with Debian dir 2aba196aec0548f1bb333214231be9cc9efe2d4c
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 1ea0c6a4..9070ce33 100644
--- a/main.cpp
+++ b/main.cpp
@@ -380,10 +380,12 @@ int main(int argc, char *argv[])
}
catch (std::exception const& e)
{
+ MessageBox::critical_message (nullptr, QApplication::translate ("main", "Fatal error"), e.what ());
std::cerr << "Error: " << e.what () << '\n';
}
catch (...)
{
+ MessageBox::critical_message (nullptr, QApplication::translate ("main", "Unexpected fatal error"));
std::cerr << "Unexpected fatal error\n";
throw; // hoping the runtime might tell us more about the exception
}