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,7 +501,6 @@ void TocWidget::updateView()
|
|||||||
if (tocTV->model() != toc_model) {
|
if (tocTV->model() != toc_model) {
|
||||||
tocTV->setModel(toc_model);
|
tocTV->setModel(toc_model);
|
||||||
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
if (persistent_)
|
|
||||||
setTreeDepth(depth_);
|
setTreeDepth(depth_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -709,7 +708,6 @@ void TocWidget::init(QString const & str)
|
|||||||
typeCO->setCurrentIndex(new_index);
|
typeCO->setCurrentIndex(new_index);
|
||||||
typeCO->blockSignals(false);
|
typeCO->blockSignals(false);
|
||||||
updateViewNow();
|
updateViewNow();
|
||||||
if (persistent_)
|
|
||||||
setTreeDepth(depth_);
|
setTreeDepth(depth_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user