Debugger: Fix removing items from modules model

Change-Id: Icce09b890e9a4a5cca142ee5307fd6f42bd5c839
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2017-07-18 08:51:26 +02:00
parent eebac87be5
commit a196170df9

View File

@@ -327,7 +327,8 @@ void ModulesHandler::endUpdateAll()
if (!item->updated) if (!item->updated)
toDestroy.append(item); toDestroy.append(item);
}); });
qDeleteAll(toDestroy); for (TreeItem *item : toDestroy)
m_model->destroyItem(item);
} }
} // namespace Internal } // namespace Internal