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