mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Allow cloned buffers to give alerts in runLaTeX()
This was disabled in 2009 in bea0925f
but it is now safe.
From Richard:
"I am pretty sure that all the work that Peter Kümmel did with the
InGuiThread classes dealt with this issue."
This commit is contained in:
parent
4f0593f91b
commit
f74b2b79c7
@ -654,13 +654,13 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
|
||||
buffer.bufferErrors(terr, errorList);
|
||||
|
||||
// check return value from latex.run().
|
||||
if ((result & LaTeX::NO_LOGFILE) && !buffer.isClone()) {
|
||||
if (result & LaTeX::NO_LOGFILE) {
|
||||
docstring const str =
|
||||
bformat(_("LaTeX did not run successfully. "
|
||||
"Additionally, LyX could not locate "
|
||||
"the LaTeX log %1$s."), from_utf8(name));
|
||||
Alert::error(_("LaTeX failed"), str);
|
||||
} else if ((result & LaTeX::NO_OUTPUT) && !buffer.isClone()) {
|
||||
} else if (result & LaTeX::NO_OUTPUT) {
|
||||
Alert::warning(_("Output is empty"),
|
||||
_("No output file was generated."));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user