summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-01 10:39:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-01 12:45:14 +0100
commitb424e32afe7e9ef72373bc4e0b9c65a9bbddbd70 (patch)
treea1f71ddb8005022ac43fc14f802c3121f9304ae9
parent2ed921b0a56961c6937661258b44e1690c5f98d1 (diff)
use freeze/thaw around a potentially long sequence of insertions
Change-Id: I151d172d65d4a74b57a64c4b5d904ef18145aede Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124543 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--basctl/source/basicide/moduldl2.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index e962eb4e0824..7be53296159a 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -629,6 +629,7 @@ void LibPage::InsertLib()
xLibDlg->SetStorageName(aURLObj.getName());
weld::TreeView& rView = xLibDlg->GetLibBox();
rView.make_unsorted();
+ rView.freeze();
const OUString* pLibNames = aLibNames.getConstArray();
for (sal_Int32 i = 0 ; i < nLibCount; ++i)
@@ -645,6 +646,7 @@ void LibPage::InsertLib()
}
}
+ rView.thaw();
rView.make_sorted();
if (rView.n_children())