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

Jan Holesovsky kendy at collabora.com
Tue Mar 13 15:29:03 UTC 2018


 svtools/source/contnr/treelistbox.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 1b9af08481b8f7f4bd15a30508606dff56b8e74f
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Mar 13 12:39:11 2018 +0100

    tdf#116334: Actually when there is no handler, we have to return 'true'.
    
    Also use the return value of the link's Call() [as the SvTreeListBox::ExpandingHdl()
    is doing], the appropriate callbacks seem to return the expected 'false' in
    the cases I've reviewed...
    
    Change-Id: I0cdd63e8ec4c794839070b914150e0b32f743359
    Reviewed-on: https://gerrit.libreoffice.org/51211
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index ace5eb8fd5bd..49ac834eecac 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -427,8 +427,7 @@ void SvTreeListBox::DeselectHdl()
 
 bool SvTreeListBox::DoubleClickHdl()
 {
-    aDoubleClickHdl.Call( this );
-    return false;
+    return !aDoubleClickHdl.IsSet() || aDoubleClickHdl.Call(this);
 }
 
 


More information about the Libreoffice-commits mailing list