forked from qt-creator/qt-creator
CMakePM: Fix removing cmake tools
The id might be destroyed with its parent before trying to reference it again and put it into the list. Change-Id: Ic7bb053293b24f0f0109a1c6479f73b7cbec2dc0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -343,8 +343,8 @@ void CMakeToolItemModel::removeCMakeTool(const Utils::Id &id)
|
||||
CMakeToolTreeItem *treeItem = cmakeToolItem(id);
|
||||
QTC_ASSERT(treeItem, return);
|
||||
|
||||
destroyItem(treeItem);
|
||||
m_removedItems.append(id);
|
||||
destroyItem(treeItem);
|
||||
}
|
||||
|
||||
void CMakeToolItemModel::apply()
|
||||
|
Reference in New Issue
Block a user