[Libreoffice-commits] core.git: sfx2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 9 15:58:09 UTC 2018
sfx2/source/dialog/mgetempl.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 5c9fe8c42f5b51debe58b4806c57b0784d99665a
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 9 14:50:28 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 9 17:57:44 2018 +0200
use freeze/thaw
Change-Id: Ia5e24c6eab1f33d8a9ef8232095cd95c68386a43
Reviewed-on: https://gerrit.libreoffice.org/61592
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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
{
More information about the Libreoffice-commits
mailing list