commit 9584b903d39b72ebc06c74f7335de3504dbd84d8
Author: Juergen Spitzmueller <[email protected]>
Date:   Wed Jul 23 12:36:43 2025 +0200

    Fix warning on Qt6 about unpaired model reset
    
    endResetModel called on QSortFilterProxyModel(0x8758cc0)
    without calling beginResetModel first
    
    This was since endResetModel() was outside the blockSignals()
    group, while beginResetModel() was within
    
    (cherry picked from commit 17f0101f4fb991c2331a6e8a59b3a9c986b6653f)
---
 src/frontends/qt/TocModel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/TocModel.cpp b/src/frontends/qt/TocModel.cpp
index c0c3dce548..379566a266 100644
--- a/src/frontends/qt/TocModel.cpp
+++ b/src/frontends/qt/TocModel.cpp
@@ -360,8 +360,8 @@ void TocModels::reset(BufferView const * bv)
                return;
        }
 
-       names_->blockSignals(true);
        names_->beginResetModel();
+       names_->blockSignals(true);
        names_->insertColumns(0, 1);
        // In the outliner, add Tocs from the master document
        TocBackend const & backend = bv->buffer().masterBuffer()->tocBackend();
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to