]> git.lyx.org Git - features.git/commitdiff
Do not throw exceptions here either. See r22806.
authorRichard Heck <rgheck@comcast.net>
Sat, 17 Apr 2010 22:49:38 +0000 (22:49 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 17 Apr 2010 22:49:38 +0000 (22:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34193 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextClass.cpp

index 3aebbbd6381f0776feaa6d76e85e9379f96fac47..540ac0622d0680ddee3a525b147e8b2cb9040a82 100644 (file)
@@ -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;
                }