summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-09 14:50:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-09 17:57:44 +0200
commit5c9fe8c42f5b51debe58b4806c57b0784d99665a (patch)
tree2b2a59f78b843f7f3fe7131bb8c89b5d1deb6458 /sfx2
parent13a5f2693f4ade09e6e6d16186c04f18e30197e3 (diff)
use freeze/thaw
Change-Id: Ia5e24c6eab1f33d8a9ef8232095cd95c68386a43 Reviewed-on: https://gerrit.libreoffice.org/61592 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/mgetempl.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx
index 4daa88b92713..db19bb92dc1f 100644
--- a/sfx2/source/dialog/mgetempl.cxx
+++ b/sfx2/source/dialog/mgetempl.cxx
@@ -129,6 +129,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf
{
SfxStyleSheetBase* pPoolStyle = pPool->First();
+ m_xFollowLb->freeze();
+
while ( pPoolStyle )
{
m_xFollowLb->append_text(pPoolStyle->GetName());
@@ -138,6 +140,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf
// A new Template is not yet in the Pool
if (m_xFollowLb->find_text(pStyle->GetName()) == -1)
m_xFollowLb->append_text(pStyle->GetName());
+
+ m_xFollowLb->thaw();
}
else
{
@@ -148,6 +152,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf
if ( pStyle->HasParentSupport() && pPool )
{
+ m_xBaseLb->freeze();
+
if ( pStyle->HasClearParentSupport() )
// the base template can be set to NULL
m_xBaseLb->append_text(SfxResId(STR_NONE));
@@ -162,6 +168,8 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf
m_xBaseLb->append_text(aStr);
pPoolStyle = pPool->Next();
}
+
+ m_xBaseLb->thaw();
}
else
{