From: Richard Heck Date: Sat, 17 Apr 2010 22:49:38 +0000 (+0000) Subject: Do not throw exceptions here either. See r22806. X-Git-Tag: 2.0.0~3428 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f9b81a16c087f05f3a65daec245e5580b10d3725;p=features.git Do not throw exceptions here either. See r22806. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34193 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/TextClass.cpp b/src/TextClass.cpp index 3aebbbd638..540ac0622d 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -30,7 +30,6 @@ #include "support/lassert.h" #include "support/debug.h" -#include "support/ExceptionMessage.h" #include "support/FileName.h" #include "support/filetools.h" #include "support/gettext.h" @@ -715,11 +714,11 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt) FileName tmp = libFileSearch("layouts", "stdinsets.inc"); if (tmp.empty()) { - throw ExceptionMessage(WarningException, _("Missing File"), + frontend::Alert::warning(_("Missing File"), _("Could not find stdinsets.inc! This may lead to data loss!")); error = true; } else if (!read(tmp, MERGE)) { - throw ExceptionMessage(WarningException, _("Corrupt File"), + frontend::Alert::warning(_("Corrupt File"), _("Could not read stdinsets.inc! This may lead to data loss!")); error = true; }