diff --git a/src/timelinelistmodel.cpp b/src/timelinelistmodel.cpp index a142262..28a2abe 100644 --- a/src/timelinelistmodel.cpp +++ b/src/timelinelistmodel.cpp @@ -154,6 +154,7 @@ void TimelineListModel::fetch() } if (itemsRow < m_items.count()) { beginRemoveRows({}, itemsRow, m_items.count() - 1); + qDeleteAll(m_items.begin() + itemsRow, m_items.end()); m_items.remove(itemsRow, m_items.count() - itemsRow); endRemoveRows(); }