]> git.lyx.org Git - features.git/commitdiff
Properly reset tree depth in outliner with keep when outliner is re-filled
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 22 Feb 2023 14:24:15 +0000 (15:24 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 22 Feb 2023 14:24:15 +0000 (15:24 +0100)
Fixes a 13 year old bug (#6675)

src/frontends/qt/TocWidget.cpp

index 7d0de633362c6d54abb542187f35d7062b4a10b1..03d870a5f4c37d7123348cf91cc93e1b9646c61e 100644 (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