Bug fix: the type combo was not cleared at each update.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18265 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-05-11 14:05:43 +00:00
parent bee94bbcd2
commit 7831aff546

View File

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