[Libreoffice-commits] core.git: include/vcl vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 12 18:03:53 UTC 2020
include/vcl/treelistbox.hxx | 1 +
vcl/source/app/salvtables.cxx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 866c08f92a78f36bbe66ed2126dbca3c4f3f36dc
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 11 19:53:41 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 12 20:03:15 2020 +0200
send deselect in hover-selection when in SelectionMode::Single mode
Change-Id: I89753455127fd23e60ef9fb489b2c435ff6800b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96166
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index 586686e81de1..ac24996221cc 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -726,6 +726,7 @@ public:
// Make mouse over a row "select" a row like a single-click normally does
void SetHoverSelection(bool bEnable) { mbHoverSelection = bEnable; }
+ bool GetHoverSelection() const { return mbHoverSelection; }
void SetForceMakeVisible(bool bEnable);
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 26dd0c585c1a..9b34a5cbfa32 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -4805,7 +4805,7 @@ IMPL_LINK_NOARG(SalInstanceTreeView, DeSelectHdl, SvTreeListBox*, void)
{
if (notify_events_disabled())
return;
- if (m_xTreeView->GetSelectionMode() == SelectionMode::Single)
+ if (m_xTreeView->GetSelectionMode() == SelectionMode::Single && !m_xTreeView->GetHoverSelection())
return;
signal_changed();
}
More information about the Libreoffice-commits
mailing list