mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Tex2lyx Compile fix: use Exception Message instead of frontend::Alert. Richard, please verify that the thrown exceptions are correctly caught by the caller in tex2lyx and in lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22806 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
27edbfb4c8
commit
270ca445e5
@ -28,6 +28,7 @@
|
||||
|
||||
#include "frontends/alert.h"
|
||||
|
||||
#include "support/ExceptionMessage.h"
|
||||
#include "support/lstrings.h"
|
||||
#include "support/FileName.h"
|
||||
#include "support/filetools.h"
|
||||
@ -480,11 +481,11 @@ bool TextClass::read(FileName const & filename, ReadType rt)
|
||||
FileName tmp = libFileSearch("layouts", "stdinsets.inc");
|
||||
|
||||
if (tmp.empty()) {
|
||||
frontend::Alert::warning(_("Missing File"),
|
||||
_("Could not find stdinsets.inc! This may lead to data loss!"));
|
||||
throw ExceptionMessage(WarningException, _("Missing File"),
|
||||
_("Could not find stdinsets.inc! This may lead to data loss!"));
|
||||
error = true;
|
||||
} else if (read(tmp, MERGE)) {
|
||||
frontend::Alert::warning(_("Corrupt File"),
|
||||
throw ExceptionMessage(WarningException, _("Corrupt File"),
|
||||
_("Could not read stdinsets.inc! This may lead to data loss!"));
|
||||
error = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user