diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-01 10:39:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-01 12:45:14 +0100 |
commit | b424e32afe7e9ef72373bc4e0b9c65a9bbddbd70 (patch) | |
tree | a1f71ddb8005022ac43fc14f802c3121f9304ae9 /basctl | |
parent | 2ed921b0a56961c6937661258b44e1690c5f98d1 (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>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 2 |
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()) |