Properly reset tree depth in outliner with keep when outliner is re-filled

Fixes a 13 year old bug (#6675)
This commit is contained in:
Juergen Spitzmueller 2023-02-22 15:24:15 +01:00
parent 08fc56486e
commit 41d95a45d9

View File

@ -614,6 +614,8 @@ void TocWidget::init(QString const & str)
typeCO->setCurrentIndex(new_index);
typeCO->blockSignals(false);
updateViewNow();
if (persistent_)
setTreeDepth(depth_);
}
} // namespace frontend