commit f1b748e42be0db754d9a66217a4cdfb1f9744184
Author: Richard Heck <[email protected]>
Date:   Tue Aug 2 16:33:18 2016 -0400

    No need to display contents of the branch when it is open.
    
    Thanks to Vincent for noticing.
---
 po/ia.gmo                  |  Bin 444082 -> 475598 bytes
 src/insets/InsetBranch.cpp |    7 +++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/po/ia.gmo b/po/ia.gmo
index eddcba4..80eb568 100644
Binary files a/po/ia.gmo and b/po/ia.gmo differ
diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp
index 8f4b77b..073072b 100644
--- a/src/insets/InsetBranch.cpp
+++ b/src/insets/InsetBranch.cpp
@@ -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"));
 }
 
 

Reply via email to