commit 41d95a45d9640f95ad59670e96140dcc17c02be2 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Wed Feb 22 15:24:15 2023 +0100
Properly reset tree depth in outliner with keep when outliner is re-filled Fixes a 13 year old bug (#6675) --- src/frontends/qt/TocWidget.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/frontends/qt/TocWidget.cpp b/src/frontends/qt/TocWidget.cpp index 7d0de63..03d870a 100644 --- a/src/frontends/qt/TocWidget.cpp +++ b/src/frontends/qt/TocWidget.cpp @@ -614,6 +614,8 @@ void TocWidget::init(QString const & str) typeCO->setCurrentIndex(new_index); typeCO->blockSignals(false); updateViewNow(); + if (persistent_) + setTreeDepth(depth_); } } // namespace frontend -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs