]> git.lyx.org Git - features.git/commitdiff
Branch-invert: Add a check mark to the switch in the contextual menu.
authorGuillaume Munch <gm@lyx.org>
Tue, 12 Jul 2016 13:27:08 +0000 (14:27 +0100)
committerGuillaume Munch <gm@lyx.org>
Tue, 12 Jul 2016 13:27:08 +0000 (14:27 +0100)
lib/ui/stdcontext.inc
src/insets/InsetBranch.cpp

index ede63c517f807cf533652f3927eec1989d9bd0a3..63ffff0ec08c23cca56172ed8028e107c305d85c 100644 (file)
@@ -494,7 +494,7 @@ Menuset
                OptItem "Deactivate Branch|e" "branch-deactivate"
                OptItem "Activate Branch in Master|M" "branch-master-activate"
                OptItem "Deactivate Branch in Master|v" "branch-master-deactivate"
-    OptItem "Toggle Inversion|I" "branch-invert"
+               OptItem "Invert Inset|I" "branch-invert"
                OptItem "Add Unknown Branch|w" "branch-add"
        End
 
index e02f09b6250d5238bd4ea57aeaea36b208891c76..a87cf053379444f43973a0da4c5b4eb33f929a43 100644 (file)
@@ -225,6 +225,7 @@ bool InsetBranch::getStatus(Cursor & cur, FuncRequest const & cmd,
 
        case LFUN_BRANCH_INVERT:
                flag.setEnabled(true);
+               flag.setOnOff(params_.inverted);
                break;
 
        case LFUN_BRANCH_ADD: