# # # patch "src/GuitoneCore.cpp" # from [fad92ebfe422feb6f2dd20195cc1b6641e0dad58] # to [76aa94168e2be1d4ef6c3cde7fd4ffcc0e265fc4] # # patch "src/GuitoneCore.h" # from [66587547a89b3d1501a46a48b91001522b610ffc] # to [66e66e79013745a1f1f25057c6ce89dcf0fe96c2] # ============================================================ --- src/GuitoneCore.cpp fad92ebfe422feb6f2dd20195cc1b6641e0dad58 +++ src/GuitoneCore.cpp 76aa94168e2be1d4ef6c3cde7fd4ffcc0e265fc4 @@ -22,6 +22,8 @@ #include "Preferences.h" #include "Settings.h" +#include + #ifdef Q_WS_MACX #include "CocoaUtil.h" #endif @@ -133,3 +135,24 @@ void GuitoneCore::threadAborted(const QS ); } +bool GuitoneCore::notify(QObject * object, QEvent * event) +{ + try + { + return QApplication::notify(object, event); + } + catch (GuitoneException &ge) + { + W(QString("catched unexpected guitone exception: %1").arg(ge)); + } + catch (std::exception &e) + { + W(QString("catched unexpected exception: %1").arg(e.what())); + } + catch (...) + { + W("catched unexpected, unknown exception"); + } + + return false; +} ============================================================ --- src/GuitoneCore.h 66587547a89b3d1501a46a48b91001522b610ffc +++ src/GuitoneCore.h 66e66e79013745a1f1f25057c6ce89dcf0fe96c2 @@ -50,6 +50,8 @@ private: void setMonotoneBinaryPath(); private: + bool notify (QObject *, QEvent *); + MonotoneManager * monotoneManager; #ifndef Q_WS_MACX ApplicationUpdate * updateDialog;