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-25 15:35:47 +0100 |
commit | 8634bafd369a18868eebd71083e09b5c8fba6292 (patch) | |
tree | ab8a2401242f20cad102fa7171d74fcc9bce0cb4 /basctl | |
parent | 4be36ad16cf8c43c343b8ff3bfc3f58556b00f7f (diff) |
allow collapsing rows
Change-Id: I6b137e4fbb860a1d40acc961dae413bcdb27575a
Reviewed-on: https://gerrit.libreoffice.org/63941
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastype2.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index b143924fe149..ee2caf7ad48a 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -1574,7 +1574,10 @@ IMPL_LINK_NOARG(SbTreeListBox, OpenCurrentHdl, weld::TreeView&, void) break; default: - m_xControl->expand_row(*m_xIter); + if (!m_xControl->get_row_expanded(*m_xIter)) + m_xControl->expand_row(*m_xIter); + else + m_xControl->collapse_row(*m_xIter); break; } } |