summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-04-17 18:07:39 -0800
committerHeiko Tietze <tietze.heiko@gmail.com>2018-04-29 08:46:46 +0200
commitb649ce123dea372359ec571135a68eb3de844e5b (patch)
tree30ebce4d1cc50176b5fad79301af2ef8530ea6fe /svtools
parent1383eed79fc5af8d7ac222b223266f54d0e66de2 (diff)
tdf#117063 Modify tree list double click behavior in the navigator
Change-Id: I369a7a2075aabd3574bdda39dac74e2b132f6923 Reviewed-on: https://gerrit.libreoffice.org/53074 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 49ac834eecac..63ddcdbd62e1 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -427,7 +427,8 @@ void SvTreeListBox::DeselectHdl()
bool SvTreeListBox::DoubleClickHdl()
{
- return !aDoubleClickHdl.IsSet() || aDoubleClickHdl.Call(this);
+ aDoubleClickHdl.Call( this );
+ return true;
}
@@ -1433,9 +1434,9 @@ void SvTreeListBox::SetSublistOpenWithLeftRight()
pImpl->bSubLstOpLR = true;
}
-void SvTreeListBox::SetSublistDontOpenWithDoubleClick()
+void SvTreeListBox::SetSublistDontOpenWithDoubleClick(bool bDontOpen)
{
- pImpl->bSubLstOpDblClick = false;
+ pImpl->bSubLstOpDblClick = !bDontOpen;
}
void SvTreeListBox::Resize()