[Gui] Fix bottomRight index by correcting last row count

This commit is contained in:
Syres916
2025-04-25 10:50:49 +01:00
committed by Benjamin Nauck
parent f3fe554af7
commit 073e87bc38

View File

@@ -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);
}
}