]> git.lyx.org Git - lyx.git/commit
Improve branch activatiion LFUNs
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 20 Jul 2023 21:42:34 +0000 (23:42 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 23 Jul 2023 16:57:38 +0000 (18:57 +0200)
commit35359a4c6f58a9bd660b7dd82c4be5638700d0d9
tree588847f51564b4284e0880d1ba1d5c1366b1f91b
parent0f7404392c2c710aa967a937f47eca0ad94cef93
Improve branch activatiion LFUNs

* put the code that is called both from Buffer and InsetBrach in the
  two helper methods Buffer::branchActivationStatus() and
  Buffer::branchActivationDispatch().

* Cleanup the code so that _MASTER_ lfuns are disabled when there is
  no master document.

* When changing branches in the master buffer, make the buffer visible
  if it is not, and make sure that undo information is recorded.

* The code in Buffer::dispatch is used first, and it gives control to
  the branch inset code if no branch name has been specified.

Fixes bug #12588.
src/Buffer.cpp
src/Buffer.h
src/insets/InsetBranch.cpp