| commit | 1b9af08481b8f7f4bd15a30508606dff56b8e74f | [log] |
|---|---|---|
| author | Jan Holesovsky <kendy@collabora.com> | Tue Mar 13 12:39:11 2018 +0100 |
| committer | Jan Holesovsky <kendy@collabora.com> | Tue Mar 13 16:28:40 2018 +0100 |
| tree | 75c06700f6ac81c01d32a130cfeb3ee084f4355b | |
| parent | 0679d6375c7ef747dea78b9c49dee78f488c058a [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>
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index ace5eb8..49ac834 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); }