]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/app/application.cpp
Bump copyright years.
[toast/confclerk.git] / src / app / application.cpp
index e8ad62bb44209875e5f78639c3b9ab67a252628c..8bf23a8500e50796429047f2a14a592a82b5c139 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011-2017 Philipp Spitzer, gregor herrmann, Stefan Stahl
+ * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl
  *
  * This file is part of ConfClerk.
  *
@@ -41,13 +41,17 @@ bool Application::notify(QObject* receiver, QEvent* event)
         error_message("UNCAUGHT exception: " + QString(e.what()));
         return false;
     } catch (...) {
-        error_message("UNCAUGHT exception: " +
 #if defined(__GNUC__) || defined(__llvm__) || defined(__clang__)
-                QString(__cxxabiv1::__cxa_current_exception_type()->name())
+        int status = 0;
+        char *buff = __cxxabiv1::__cxa_demangle(
+                __cxxabiv1::__cxa_current_exception_type()->name(),
+                NULL, NULL, &status);
+        QString exception_name = QString(buff);
+        std::free(buff);
 #else
-                "unknown"
+        QString exception_name = QString("unknown");
 #endif
-                );
+        error_message("UNCAUGHT exception: " + exception_name);
         return false;
     }
 }