diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-12 12:29:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-12 17:05:39 +0100 |
commit | c5d2c4cac83fb013052b490e212b79dc51605cd8 (patch) | |
tree | dc555d4bad3d74406d87ae669296a3e3d5462e72 /basctl | |
parent | 18dd0254a38ca91d0d325aaecc4227724c035d87 (diff) |
we always want to expand/collapse on double click
Change-Id: Idf5496b44f5e2d5782d99317029aa0e9cb99e8d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88527
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastype2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index 673a3daeabe9..378700bb5325 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -1501,6 +1501,11 @@ IMPL_LINK_NOARG(SbTreeListBox, OpenCurrentHdl, weld::TreeView&, bool) bool bValidIter = m_xControl->get_cursor(m_xIter.get()); if (!bValidIter) return true; + if (!m_xControl->get_row_expanded(*m_xIter)) + m_xControl->expand_row(*m_xIter); + else + m_xControl->collapse_row(*m_xIter); + EntryDescriptor aDesc = GetEntryDescriptor(m_xIter.get()); switch (aDesc.GetType()) { @@ -1518,15 +1523,10 @@ IMPL_LINK_NOARG(SbTreeListBox, OpenCurrentHdl, weld::TreeView&, bool) SID_BASICIDE_SHOWSBX, SfxCallMode::SYNCHRON, { &aSbxItem } ); - return true; } break; default: - if (!m_xControl->get_row_expanded(*m_xIter)) - m_xControl->expand_row(*m_xIter); - else - m_xControl->collapse_row(*m_xIter); break; } return true; |