From a196170df9e1decf9fb5e755b9ae411ae4ef7b9e Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 18 Jul 2017 08:51:26 +0200 Subject: [PATCH] Debugger: Fix removing items from modules model Change-Id: Icce09b890e9a4a5cca142ee5307fd6f42bd5c839 Reviewed-by: hjk --- src/plugins/debugger/moduleshandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp index 94d558851af..e37c44ccbba 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