]> git.lyx.org Git - features.git/commitdiff
GuiBox: assure combo boxes are empty before filling
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2015 11:09:07 +0000 (13:09 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 18 May 2015 11:09:07 +0000 (13:09 +0200)
src/frontends/qt4/GuiBox.cpp

index 0ae3c16dfb01f36757bbe413a214fc407faf6dde..123c2868456352d4345e93c08bf6a4611bbcb76e 100644 (file)
@@ -166,6 +166,7 @@ GuiBox::GuiBox(QWidget * parent) : InsetParamsWidget(parent)
 
 void GuiBox::fillComboColor(QComboBox * combo, bool const is_none)
 {
+       combo->clear();
        QPixmap coloritem(32, 32);
        QColor color;
        // frameColorCO cannot be uncolored