summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-08-19 12:50:23 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2024-08-19 15:03:11 +0200
commit93c17f16b064ded262b23eb8aa60ff58bda18bc7 (patch)
treea0a49aa9dbdd1a9078c190b8002525264bceae0b /vcl
parent1565181908a06dcdb8d97d6be8ff773acd1d05cb (diff)
tdf#150461: deselect all when clicking outside of all list items
Change-Id: I72185ccee716825b5e7b1bb7ae6bddb533604f53 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171988 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svimpbox.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 34dfd537a50b..3008488b5d4f 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -1938,7 +1938,11 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt )
SvTreeListEntry* pEntry = GetEntry(aPos);
// the entry can still be invalid!
if( !pEntry || !m_pView->GetViewData( pEntry ))
+ {
+ if (!rMEvt.GetModifier() && rMEvt.IsLeft())
+ SelAllDestrAnch(false); // deselect all
return;
+ }
tools::Long nY = GetEntryLine( pEntry );
// Node-Button?