mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27162 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b92e30fbdd
commit
0b0f0942c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user