Skip to content

Commit

Permalink
Fix nested calls to beginResetModel/EndResetModel
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer authored and HTRamsey committed Jan 9, 2025
1 parent f8db073 commit 539459e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/QmlControls/QmlObjectListModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,10 @@ void QmlObjectListModel::deleteListAndContents()

void QmlObjectListModel::clearAndDeleteContents()
{
beginResetModel();
for (int i=0; i<_objectList.count(); i++) {
_objectList[i]->deleteLater();
}
clear();
endResetModel();
}

void QmlObjectListModel::beginReset()
Expand Down

0 comments on commit 539459e

Please sign in to comment.