]> git.lyx.org Git - features.git/commitdiff
Bug fix: the type combo was not cleared at each update.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 11 May 2007 14:05:43 +0000 (14:05 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 11 May 2007 14:05:43 +0000 (14:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18265 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocWidget.cpp

index acd52790338433795f7444bdf86d5c3c340fd69d..31c7e8f48feb8955cd7bc9ceed6fbb689d08926e 100644 (file)
@@ -252,6 +252,7 @@ void TocWidget::updateGui()
        QString current_text = typeCO->currentText();
        lyxerr << "current_text " << fromqstr(current_text) << endl;
        typeCO->blockSignals(true);
+       typeCO->clear();
        int current_type = -1;
        for (size_t i = 0; i != type_names.size(); ++i) {
                QString item = toqstr(type_names[i]);