summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-03-13 12:39:11 +0100
committerpranavk <pranavk@collabora.co.uk>2018-03-14 07:19:24 +0100
commit291cb54cdd74336b5dcbb11450737c2199d41802 (patch)
tree541f3c805ae964cf420f6db9a8d23ebb9983751d /svtools
parentad907b7b00efd889aed89cc0545472af829b6e65 (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/51213 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx3
1 files changed, 1 insertions, 2 deletions
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);
}