Kaydet (Commit) e6c08c0c authored tarafından Caolán McNamara's avatar Caolán McNamara

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 2c6c905b
...@@ -2496,6 +2496,10 @@ IMPL_LINK(SalInstanceTreeView, ToggleHdl, SvLBoxButtonData*, pData, void) ...@@ -2496,6 +2496,10 @@ IMPL_LINK(SalInstanceTreeView, ToggleHdl, SvLBoxButtonData*, pData, void)
SvTreeListEntry* pEntry = pData->GetActEntry(); SvTreeListEntry* pEntry = pData->GetActEntry();
SvLBoxButton* pBox = pData->GetActBox(); 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) for (int i = 1, nCount = pEntry->ItemCount(); i < nCount; ++i)
{ {
SvLBoxItem& rItem = pEntry->GetItem(i); SvLBoxItem& rItem = pEntry->GetItem(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment