diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-03-13 12:39:11 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-27 12:22:57 +0200 |
commit | 137cca7c67e58e25328805ed2609337ca78c1e89 (patch) | |
tree | 6baf9d2841d491c43021e16208cd7e52c7a8d0b2 | |
parent | 43770a7aece6708d5ae6a55339e35f7145e85c6f (diff) |
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@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 1b9af08481b8f7f4bd15a30508606dff56b8e74f)
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 5a28f90fb339..45a789633a87 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); } |