summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/MapWildListModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-04-19 01:10:55 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-04-19 01:10:55 -0400
commit5704a38733a00bc0ea972fd8ff147dd3145ec0d1 (patch)
tree6c8fa162d27ac386536f001eb1193910ebd1bf14 /sigmodr/tree/MapWildListModel.cpp
parentc5ae07d7b5ee170672bc59365091ad3ac7099823 (diff)
downloadsigen-5704a38733a00bc0ea972fd8ff147dd3145ec0d1.tar.gz
sigen-5704a38733a00bc0ea972fd8ff147dd3145ec0d1.tar.xz
sigen-5704a38733a00bc0ea972fd8ff147dd3145ec0d1.zip
Call base method for deletion of children
Diffstat (limited to 'sigmodr/tree/MapWildListModel.cpp')
-rw-r--r--sigmodr/tree/MapWildListModel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sigmodr/tree/MapWildListModel.cpp b/sigmodr/tree/MapWildListModel.cpp
index adf4c23e..cfc1fa0c 100644
--- a/sigmodr/tree/MapWildListModel.cpp
+++ b/sigmodr/tree/MapWildListModel.cpp
@@ -123,9 +123,7 @@ void MapWildListModel::deleteObject(BaseModel* model)
if (0 <= index)
{
qobject_cast<MapWildList*>(m_object)->deleteEncounter(index);
- m_objects[index]->deleteLater();
- m_objects.removeAt(index);
- childRowChanged(index);
+ removeChild(index);
}
}