[Libreoffice-commits] core.git: sw/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 7 20:12:25 UTC 2021


 sw/source/uibase/utlui/tmplctrl.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 5d71f2d2168de045ab8d1e0fa80a7580b4facafc
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Fri Feb 26 18:12:15 2021 -0900
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Sun Mar 7 21:11:29 2021 +0100

    tdf#116136 don't show statusbar template control tooltip
    
    in print preview
    
    Change-Id: I9bba275d89d1d70bfcef9182f52273fd405118d2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111863
    Tested-by: Jenkins
    Reviewed-by: John Turpish <jbt at gmx.us>
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/utlui/tmplctrl.cxx b/sw/source/uibase/utlui/tmplctrl.cxx
index 88a750be4d88..21cbcfc5a116 100644
--- a/sw/source/uibase/utlui/tmplctrl.cxx
+++ b/sw/source/uibase/utlui/tmplctrl.cxx
@@ -42,7 +42,6 @@ SwTemplateControl::SwTemplateControl( sal_uInt16 _nSlotId,
                                       StatusBar& rStb ) :
     SfxStatusBarControl( _nSlotId, _nId, rStb )
 {
-    GetStatusBar().SetQuickHelpText(GetId(), SwResId(STR_TMPLCTRL_HINT));
 }
 
 SwTemplateControl::~SwTemplateControl()
@@ -57,9 +56,13 @@ void SwTemplateControl::StateChanged(
     {
         sTemplate = pItem->GetValue();
         GetStatusBar().SetItemText(GetId(), sTemplate);
+        GetStatusBar().SetQuickHelpText(GetId(), SwResId(STR_TMPLCTRL_HINT));
     }
     else
+    {
         GetStatusBar().SetItemText(GetId(), OUString());
+        GetStatusBar().SetQuickHelpText(GetId(), u"");
+    }
 }
 
 void SwTemplateControl::Paint( const UserDrawEvent&  )


More information about the Libreoffice-commits mailing list