forked from qt-creator/qt-creator
Debugger: Fix removing items from modules model
Change-Id: Icce09b890e9a4a5cca142ee5307fd6f42bd5c839 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user