diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-09 13:44:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-09 17:57:15 +0200 |
commit | 13a5f2693f4ade09e6e6d16186c04f18e30197e3 (patch) | |
tree | 93b8894e4b0cf3194d56b4aeb472bbf0e4e7d47c /svx/source/tbxctrls/tbcontrl.cxx | |
parent | 2116f1d7932aa778afb14daf9cf5cd3df7b05fc1 (diff) |
use freeze/thaw
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>
Diffstat (limited to 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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()); |