]> git.lyx.org Git - features.git/commit
Do not show master's errors if compiling child
authorScott Kostyshak <skostysh@lyx.org>
Sat, 7 Apr 2018 21:11:33 +0000 (17:11 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 15 Apr 2018 03:25:19 +0000 (23:25 -0400)
commitc19fd610b924caa8dc94a8ec9f95aa03b42c09c8
treebd6f2d31f126d5fc9333366ba4fe147341462a2b
parent86c003001dc396ba385575bb494b655a12dd8fb9
Do not show master's errors if compiling child

If a master document is compiled and has errors, and then a child is
compiled without error, the errors from the master compilation were
shown.

The setup of the relevant code is the following:

  processingThreadFinished() calls errors().  errors() makes the
  assumption that if it is called, there must have been an error
  somewhere.

The logic of the setup is the following:

  processingThreadFinished() knows whether there was an error on
  the most recent preview/export, although it doesn't know whether
  the error is from master or child (i.e. does not know whether the
  user was compiling the child, or whether master-buffer-view was
  called).  Inside error(), if there is no error in the child, it is
  assumed the error is from master.

For the above logic to work, errors() should only be called if there
was an error.

This commit fixes #11106 and preserves the fix to #7330.

(cherry picked from commit 8d2b121ef506804fe2c894a61cd4232e87254847)
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h
status.23x