]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/app/application.cpp
use visible notifications of errors
[toast/confclerk.git] / src / app / application.cpp
index 353d8c7b56dbfaa171fee0c709fad01f807b2885..29a01484a5e9cec612c1b0ce3804fca05ad1bf60 100644 (file)
@@ -17,6 +17,7 @@
  * fosdem-schedule.  If not, see <http://www.gnu.org/licenses/>.
  */
 #include "application.h"
+#include "errormessage.h"
 
 #include <ormrecord.h>
 
@@ -28,10 +29,10 @@ bool Application::notify(QObject* receiver, QEvent* event)
     try {
         return QApplication::notify(receiver, event);
     } catch (OrmException& e) {
-        qWarning() << "UNCAUGHT EXCEPTION: OrmException, text= " << e.text();
+        error_message("UNCAUGHT OrmException: " + e.text());
         return false;
     } catch (...) {
-        qWarning() << "UNCAUGHT EXCEPTION: unknown";
+        error_message("UNCAUGHT EXCEPTION: unknown");
         return false;
     }
 }