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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 18 02:39:27 UTC 2019


 sc/source/ui/app/inputhdl.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit f74f7899fa2c8956fcd3a213d75fd7c84bd99bb7
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Jul 18 11:03:44 2019 +1000
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Jul 18 04:38:28 2019 +0200

    tdf#126453: hide ScInputHandler's tooltips when loosing focus
    
    Change-Id: I188db03ad9027bcb17a72f7c59d85e611b57bfd0
    Reviewed-on: https://gerrit.libreoffice.org/75824
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index eb8142a913cf..e9c1270272c2 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -829,13 +829,15 @@ void ScInputHandler::GetFormulaData()
 
 IMPL_LINK( ScInputHandler, ShowHideTipVisibleParentListener, VclWindowEvent&, rEvent, void )
 {
-    if( rEvent.GetId() == VclEventId::ObjectDying || rEvent.GetId() == VclEventId::WindowHide )
+    if (rEvent.GetId() == VclEventId::ObjectDying || rEvent.GetId() == VclEventId::WindowHide
+        || rEvent.GetId() == VclEventId::WindowLoseFocus)
         HideTip();
 }
 
 IMPL_LINK( ScInputHandler, ShowHideTipVisibleSecParentListener, VclWindowEvent&, rEvent, void )
 {
-    if( rEvent.GetId() == VclEventId::ObjectDying || rEvent.GetId() == VclEventId::WindowHide )
+    if (rEvent.GetId() == VclEventId::ObjectDying || rEvent.GetId() == VclEventId::WindowHide
+        || rEvent.GetId() == VclEventId::WindowLoseFocus)
         HideTipBelow();
 }
 


More information about the Libreoffice-commits mailing list