]> git.lyx.org Git - lyx.git/commit
Fix issue in running compare from the command line
authorSam Crawley <sam@crawley.nz>
Fri, 13 Nov 2020 07:58:20 +0000 (20:58 +1300)
committerPavel Sanda <sanda@lyx.org>
Sun, 15 Nov 2020 09:35:28 +0000 (10:35 +0100)
commitf457a32a13e1dd01453df531ac48a76fb047c614
tree4e334244a153bd048bdc7256058e2bf9c9b5c7ae
parent3784d798826732f801739755ebb636067b8090c3
Fix issue in running compare from the command line

Because Compare uses threads, we need to make sure it is finished when a
compare is executed from the command line. This was a problem for command
sequences, because the next command would start running before the compare
was done, and the buffer with differences was available.

So this commit adds the "run-blocking" parameter when using
LFUN_DIALOG_SHOW to run a Compare. When calling Compare with run-sync, the
LFUN will wait for the compare worker thread to finish before returning and
possibly running the next command.
src/frontends/qt/GuiCompare.cpp
src/frontends/qt/GuiCompare.h