aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/moduleshandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/moduleshandler.cpp')
-rw-r--r--src/plugins/debugger/moduleshandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp
index 94d558851a..e37c44ccbb 100644
--- a/src/plugins/debugger/moduleshandler.cpp
+++ b/src/plugins/debugger/moduleshandler.cpp
@@ -327,7 +327,8 @@ void ModulesHandler::endUpdateAll()
if (!item->updated)
toDestroy.append(item);
});
- qDeleteAll(toDestroy);
+ for (TreeItem *item : toDestroy)
+ m_model->destroyItem(item);
}
} // namespace Internal