diff --git a/Source/GUI/MemWatcher/MemWatchModel.cpp b/Source/GUI/MemWatcher/MemWatchModel.cpp index 731be17..535d3f6 100644 --- a/Source/GUI/MemWatcher/MemWatchModel.cpp +++ b/Source/GUI/MemWatcher/MemWatchModel.cpp @@ -181,8 +181,9 @@ void MemWatchModel::editEntry(MemWatchEntry* entry, const QModelIndex& index) void MemWatchModel::clearRoot() { - m_rootNode->removeChildren(); - emit layoutChanged(); + beginResetModel(); + m_rootNode->deleteChildren(); + endResetModel(); } void MemWatchModel::removeNode(const QModelIndex& index)