From 98b47fdc85f27445402c21c6c719851495265329 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 27 Sep 2007 09:49:14 +0000 Subject: [PATCH] Gives the user some information about the crash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20531 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index b9d43faf04..1427e0c499 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -296,12 +296,18 @@ bool GuiApplication::notify(QObject * receiver, QEvent * event) } } catch (std::exception const & e) { - lyxerr << "Caught \"normal\" exception: " << e.what() << endl; + docstring s = _("LyX has caught an exception, it will now " + "attemp to save all unsaved documents and exit." + "\n\nException: "); + s += from_ascii(e.what()); + Alert::error(_("Software exception Detected"), s); LyX::cref().emergencyCleanup(); QApplication::exit(1); } catch (...) { - lyxerr << "Caught some really weird exception..." << endl; + docstring s = _("LyX has caught some really weird exception, it will " + "now attemp to save all unsaved documents and exit."); + Alert::error(_("Software exception Detected"), s); LyX::cref().emergencyCleanup(); QApplication::exit(1); } -- 2.39.5