Fix outliner tree depth (#13098)

This commit is contained in:
Juergen Spitzmueller 2024-09-19 10:00:39 +02:00
parent 9d9f13ff83
commit f5306b7054

View File

@ -501,7 +501,6 @@ void TocWidget::updateView()
if (tocTV->model() != toc_model) {
tocTV->setModel(toc_model);
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
if (persistent_)
setTreeDepth(depth_);
}
@ -709,7 +708,6 @@ void TocWidget::init(QString const & str)
typeCO->setCurrentIndex(new_index);
typeCO->blockSignals(false);
updateViewNow();
if (persistent_)
setTreeDepth(depth_);
}