summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/ItemGroupModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/ItemGroupModel.cpp')
-rw-r--r--sigmodr/tree/ItemGroupModel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sigmodr/tree/ItemGroupModel.cpp b/sigmodr/tree/ItemGroupModel.cpp
index 3f0b5197..777718f2 100644
--- a/sigmodr/tree/ItemGroupModel.cpp
+++ b/sigmodr/tree/ItemGroupModel.cpp
@@ -86,8 +86,6 @@ void ItemGroupModel::deleteObject(BaseModel* model)
if (0 <= index)
{
qobject_cast<Game*>(m_object)->deleteItem(index);
- m_objects[index]->deleteLater();
- m_objects.removeAt(index);
- childRowChanged(index);
+ removeChild(index);
}
}