[LyX/master] Properly reset tree depth in outliner with keep when outliner is re-filled

Juergen Spitzmueller spitz at lyx.org
Wed Feb 22 13:23:24 UTC 2023


commit 41d95a45d9640f95ad59670e96140dcc17c02be2
Author: Juergen Spitzmueller <spitz at 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


More information about the lyx-cvs mailing list