mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix outliner tree depth (#13098)
This commit is contained in:
parent
9d9f13ff83
commit
f5306b7054
@ -501,8 +501,7 @@ void TocWidget::updateView()
|
||||
if (tocTV->model() != toc_model) {
|
||||
tocTV->setModel(toc_model);
|
||||
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
if (persistent_)
|
||||
setTreeDepth(depth_);
|
||||
setTreeDepth(depth_);
|
||||
}
|
||||
|
||||
sortCB->blockSignals(true);
|
||||
@ -709,8 +708,7 @@ void TocWidget::init(QString const & str)
|
||||
typeCO->setCurrentIndex(new_index);
|
||||
typeCO->blockSignals(false);
|
||||
updateViewNow();
|
||||
if (persistent_)
|
||||
setTreeDepth(depth_);
|
||||
setTreeDepth(depth_);
|
||||
}
|
||||
|
||||
} // namespace frontend
|
||||
|
Loading…
Reference in New Issue
Block a user