summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-01-22 15:23:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-01-22 18:08:09 +0100
commite6c08c0c5bea60a5de727fc234379fe86569d6ab (patch)
treeaa8b5fe38ed371f09c4b4f5b1c08457aef1f4a24
parent2c6c905b5f24b254c047968e889f241d5f09b1bf (diff)
Resolves: tdf#122874 select row when user clicks toggle in row
Change-Id: I761d0566eef07eadf9e583566b8707b18563ee33 Reviewed-on: https://gerrit.libreoffice.org/66742 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/app/salvtables.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index fb010d50c55a..02f07418a44a 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -2496,6 +2496,10 @@ IMPL_LINK(SalInstanceTreeView, ToggleHdl, SvLBoxButtonData*, pData, void)
SvTreeListEntry* pEntry = pData->GetActEntry();
SvLBoxButton* pBox = pData->GetActBox();
+ // tdf#122874 Select the row, calling SelectHdl, before handling
+ // the toggle
+ m_xTreeView->Select(pEntry, true);
+
for (int i = 1, nCount = pEntry->ItemCount(); i < nCount; ++i)
{
SvLBoxItem& rItem = pEntry->GetItem(i);