git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27162 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-10-28 06:46:27 +00:00
parent b92e30fbdd
commit 0b0f0942c0

View File

@ -325,11 +325,14 @@ void TocWidget::init(QString const & str)
if (new_index == -1) {
current_type_ = "tableofcontents";
new_index = typeCO->findData(current_type_);
} else {
current_type_ = typeCO->itemData(new_index).toString();
}
typeCO->blockSignals(true);
typeCO->setCurrentIndex(new_index);
typeCO->blockSignals(false);
updateView();
}
} // namespace frontend