From 073e87bc38aa0ebadd6336a4cc3fb051ea3fbde7 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Fri, 25 Apr 2025 10:50:49 +0100 Subject: [PATCH] [Gui] Fix bottomRight index by correcting last row count --- src/Gui/propertyeditor/PropertyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyModel.cpp b/src/Gui/propertyeditor/PropertyModel.cpp index 3babbd74f4..b3819eff3e 100644 --- a/src/Gui/propertyeditor/PropertyModel.cpp +++ b/src/Gui/propertyeditor/PropertyModel.cpp @@ -577,7 +577,7 @@ void PropertyModel::updateChildren(PropertyItem* item, int column, const QModelI int numChild = item->childCount(); if (numChild > 0) { QModelIndex topLeft = this->index(0, column, parent); - QModelIndex bottomRight = this->index(numChild, column, parent); + QModelIndex bottomRight = this->index(numChild - 1, column, parent); Q_EMIT dataChanged(topLeft, bottomRight); } }