Browse Source

Don't delete rows until parent is deleted

QGC4.4
Don Gagne 10 years ago
parent
commit
5f5ff580d5
  1. 3
      src/QmlControls/QmlObjectListModel.cc

3
src/QmlControls/QmlObjectListModel.cc

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

Loading…
Cancel
Save