[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - svtools/source

Jan Holesovsky kendy at collabora.com
Wed Mar 14 06:19:51 UTC 2018


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

New commits:
commit 291cb54cdd74336b5dcbb11450737c2199d41802
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/51213
    Reviewed-by: pranavk <pranavk at collabora.co.uk>
    Tested-by: pranavk <pranavk at collabora.co.uk>

diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 7190afa3d405..72259b8886a4 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -429,8 +429,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