]> git.lyx.org Git - features.git/commitdiff
No need to display contents of the branch when it is open.
authorRichard Heck <rgheck@lyx.org>
Tue, 2 Aug 2016 20:33:18 +0000 (16:33 -0400)
committerRichard Heck <rgheck@lyx.org>
Tue, 2 Aug 2016 20:33:18 +0000 (16:33 -0400)
Thanks to Vincent for noticing.

po/ia.gmo
src/insets/InsetBranch.cpp

index eddcba4b7b4fa366d662b93555965257060cc77a..80eb568c04611b7f435c2faf1217c9c046d8597e 100644 (file)
Binary files a/po/ia.gmo and b/po/ia.gmo differ
index 8f4b77b0033fd06a5fd42a2ac031adf074ec34da..073072b47dec4b03182422c787320e5dfbb54480 100644 (file)
@@ -64,7 +64,7 @@ void InsetBranch::read(Lexer & lex)
 }
 
 
-docstring InsetBranch::toolTip(BufferView const &, int, int) const
+docstring InsetBranch::toolTip(BufferView const & bv, int, int) const
 {
        docstring const masterstatus = isBranchSelected() ?
                _("active") : _("non-active");
@@ -87,7 +87,10 @@ docstring InsetBranch::toolTip(BufferView const &, int, int) const
        docstring const heading = 
                support::bformat(_("Branch Name: %1$s\nBranch Status: %2$s\nInset Status: %3$s"),
                                                 params_.branch, status, onoff);
-       return toolTipText(heading);
+
+       if (isOpen(bv))
+               return heading;
+       return toolTipText(heading + from_ascii("\n"));
 }