From 5f5ff580d559511b46c653abf82f2b645298b126 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 11 Sep 2015 08:35:18 -0700 Subject: [PATCH] Don't delete rows until parent is deleted --- src/QmlControls/QmlObjectListModel.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/QmlControls/QmlObjectListModel.cc b/src/QmlControls/QmlObjectListModel.cc index a3647ff79..0f9a3e303 100644 --- a/src/QmlControls/QmlObjectListModel.cc +++ b/src/QmlControls/QmlObjectListModel.cc @@ -113,7 +113,8 @@ bool QmlObjectListModel::removeRows(int position, int rows, const QModelIndex& p beginRemoveRows(QModelIndex(), position, position + rows - 1); for (int row=0; rowdeleteLater(); + // FIXME: Need to figure our correct memory management for here + //_objectList[position]->deleteLater(); _objectList.removeAt(position); } qDebug() << _objectList; -- 2.22.0