summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-08 16:53:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-08 19:44:28 +0000
commitc2c7c378ff8c1e3ba12420aa75189b9b1fe8515b (patch)
treeabeb851bb325c122bbbbbfb43f177f63b04d3d67 /cui
parent9fc0e4fa50e22c464dde702fcaa25420fa5ce5a4 (diff)
update assign/delete state after positioning cursor in treeview
Change-Id: I9fe2d9d4a3575e0b67c8421d215f65f46c2ac1f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143832 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/macroass.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx
index e80e471ff228..baff7c87b0ae 100644
--- a/cui/source/tabpages/macroass.cxx
+++ b/cui/source/tabpages/macroass.cxx
@@ -221,7 +221,10 @@ void SfxMacroTabPage::Reset( const SfxItemSet* rSet )
weld::TreeView& rListBox = mpImpl->m_xEventLB->GetListBox();
std::unique_ptr<weld::TreeIter> xIter(rListBox.make_iterator());
if (rListBox.get_iter_first(*xIter))
+ {
rListBox.set_cursor(*xIter);
+ EnableButtons();
+ }
}
bool SfxMacroTabPage::IsReadOnly() const