diff options
Diffstat (limited to 'sigmodr/tree/CoinListModel.cpp')
-rw-r--r-- | sigmodr/tree/CoinListModel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sigmodr/tree/CoinListModel.cpp b/sigmodr/tree/CoinListModel.cpp index 3b6172f2..d976ec7f 100644 --- a/sigmodr/tree/CoinListModel.cpp +++ b/sigmodr/tree/CoinListModel.cpp @@ -120,9 +120,7 @@ void CoinListModel::deleteObject(BaseModel* model) if (0 <= index) { qobject_cast<CoinList*>(m_object)->deleteItem(index); - m_objects[index]->deleteLater(); - m_objects.removeAt(index); - childRowChanged(index); + removeChild(index); } } |