Sun Dec 13 11:49:35 CET 2009 Tobias Rautenkranz * Convert C++ exceptions to a qFatal diff -rN -u old-qt.gui/src/lib/qt-smoke.cpp new-qt.gui/src/lib/qt-smoke.cpp --- old-qt.gui/src/lib/qt-smoke.cpp 2014-10-30 07:43:19.000000000 +0100 +++ new-qt.gui/src/lib/qt-smoke.cpp 2014-10-30 07:43:19.000000000 +0100 @@ -7,6 +7,14 @@ /** @file * @brief Qt support functions */ +#include + +static void +terminate() +{ + qFatal("caught an exception."); +} + extern "C" { /** Registers a callback to be invoked for every QEvent. @@ -20,6 +28,7 @@ qt_smoke_register_event_notify(void* callback) { Q_ASSERT(callback); + std::set_terminate(terminate); return QInternal::registerCallback(QInternal::EventNotifyCallback, reinterpret_cast(callback));