diff --git a/src/QmlControls/QmlObjectListModel.cc b/src/QmlControls/QmlObjectListModel.cc index 5a37cdfc688..29ccf9c0fd2 100644 --- a/src/QmlControls/QmlObjectListModel.cc +++ b/src/QmlControls/QmlObjectListModel.cc @@ -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()