From 13a5f2693f4ade09e6e6d16186c04f18e30197e3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara <caolanm@redhat.com> Date: Tue, 9 Oct 2018 13:44:38 +0100 Subject: use freeze/thaw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I14f808864ec99258731e12879acffdd130ab0613 Reviewed-on: https://gerrit.libreoffice.org/61586 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> --- svx/source/tbxctrls/tbcontrl.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'svx/source/tbxctrls/tbcontrl.cxx') diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index a9a78125cddd..98f491711a95 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1437,8 +1437,10 @@ ColorWindow::ColorWindow(std::shared_ptr<PaletteManager> const & rPaletteManager mxPaletteListBox->connect_changed(LINK(this, ColorWindow, SelectPaletteHdl)); std::vector<OUString> aPaletteList = mxPaletteManager->GetPaletteList(); + mxPaletteListBox->freeze(); for (std::vector<OUString>::iterator it = aPaletteList.begin(); it != aPaletteList.end(); ++it) mxPaletteListBox->append_text(*it); + mxPaletteListBox->thaw(); OUString aPaletteName( officecfg::Office::Common::UserColors::PaletteName::get() ); mxPaletteListBox->set_active_text(aPaletteName); const int nSelectedEntry(mxPaletteListBox->get_active()); -- cgit