[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jan 22 17:08:37 UTC 2019
vcl/source/app/salvtables.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit e6c08c0c5bea60a5de727fc234379fe86569d6ab
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jan 22 15:23:07 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jan 22 18:08:09 2019 +0100
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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);
More information about the Libreoffice-commits
mailing list