Commit 5f5ff580 authored by Don Gagne's avatar Don Gagne

Don't delete rows until parent is deleted

parent f5389ba6
...@@ -113,7 +113,8 @@ bool QmlObjectListModel::removeRows(int position, int rows, const QModelIndex& p ...@@ -113,7 +113,8 @@ bool QmlObjectListModel::removeRows(int position, int rows, const QModelIndex& p
beginRemoveRows(QModelIndex(), position, position + rows - 1); beginRemoveRows(QModelIndex(), position, position + rows - 1);
for (int row=0; row<rows; row++) { for (int row=0; row<rows; row++) {
_objectList[position]->deleteLater(); // FIXME: Need to figure our correct memory management for here
//_objectList[position]->deleteLater();
_objectList.removeAt(position); _objectList.removeAt(position);
} }
qDebug() << _objectList; qDebug() << _objectList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment