summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-25 12:23:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-27 10:00:11 +0100
commitde5db9314c62859b06dd2bb7bd204d5db4821cf1 (patch)
treef980903a40a204b651684ff11176ca8ca051e919 /cui
parente84acb8c5829775cb9d5d1115bbcb1b61bd260ee (diff)
tdf#126043 freeze/thaw around bulk insert
Change-Id: I2dd9aedc305a4fe1992fe8c52fee85ade8589a5b Reviewed-on: https://gerrit.libreoffice.org/83674 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 300ffc649aaa555bba19a0475d74067c9574fc04) Reviewed-on: https://gerrit.libreoffice.org/83833
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/SvxNotebookbarConfigPage.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx
index 4a26650b80e2..db450f5e78c4 100644
--- a/cui/source/customize/SvxNotebookbarConfigPage.cxx
+++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx
@@ -475,6 +475,9 @@ void SvxNotebookbarConfigPage::SelectElement()
aEntries = aTempEntries;
aTempEntries.clear();
+ weld::TreeView& rTreeView = m_xContentsListBox->get_widget();
+ rTreeView.freeze();
+
sal_Int64 nId = 0;
for (std::size_t nIdx = 0; nIdx < aEntries.size(); nIdx++)
{
@@ -495,6 +498,9 @@ void SvxNotebookbarConfigPage::SelectElement()
aEntries[nIdx].sActionName, nIdx, 1);
++nId;
}
+
+ rTreeView.thaw();
+
aEntries.clear();
}