Angus Leeming wrote:
Abdelrazak Younes wrote:
+bool GuiApplication::notify(QObject * receiver, QEvent * event)
+{
+     bool return_value;
+     try {
+             return_value = QApplication::notify(receiver, event);
+     }
+     catch (...) {
+             lyxerr << to_utf8(_("ERROR: Exception caught in the Qt event loop,
exiting..."))
+                     << endl;
+
+             LyX::cref().emergencyCleanup();
+             abort();
+     }
+
+     return return_value;

That's good, in that you've saved LyX's bacon, but it would be nice to
print out the exception message if you could. Something like:

Yes, thanks for the suggestion.

Abdel.

Reply via email to