commit 17f0101f4fb991c2331a6e8a59b3a9c986b6653f
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
---
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 54d4f9f6cf..9be3a7f8e0 100644
--- a/src/frontends/qt/TocModel.cpp
+++ b/src/frontends/qt/TocModel.cpp
@@ -364,8 +364,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