diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-23 17:14:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-24 15:42:17 +0100 |
commit | 51e6a95757906dff8b2819a4141bf3dc7938e95f (patch) | |
tree | 187342c153d301242b3bfd6cba14fec46b1ee110 /cui | |
parent | 7798c84c969b09f519be7f382fa55e15b4ddcb0b (diff) |
allow collapsing rows
Change-Id: I6b137e4fbb860a1d40acc961dae413bcdb27575a
Reviewed-on: https://gerrit.libreoffice.org/63894
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index d0900c2ccbab..4204d2c0a0d6 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -1279,7 +1279,10 @@ IMPL_LINK_NOARG(CuiConfigGroupListBox, OpenCurrentHdl, weld::TreeView&, void) bool bValidIter = m_xTreeView->get_cursor(xIter.get()); if (!bValidIter) return; - m_xTreeView->expand_row(*xIter); + if (!m_xTreeView->get_row_expanded(*xIter)) + m_xTreeView->expand_row(*xIter); + else + m_xTreeView->collapse_row(*xIter); } CuiConfigGroupListBox::~CuiConfigGroupListBox() |