forked from qt-creator/qt-creator
ProjectExplorer: fix comparing toolchains on redetection
Use the specialized operator== of ToolChain when looking for priorly defined autodetected tool chains. Fixes: QTCREATORBUG-25697 Change-Id: I477d29695eef2acb1ba566d42df9b1e57d26eb07 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -417,10 +417,7 @@ void ToolChainOptionsWidget::redetectToolchains()
|
||||
if (knownTcs.contains(tc) || toDelete.contains(tc))
|
||||
continue;
|
||||
const auto matchItem = [tc](const ToolChainTreeItem *item) {
|
||||
return item->toolChain->compilerCommand() == tc->compilerCommand()
|
||||
&& item->toolChain->typeId() == tc->typeId()
|
||||
&& item->toolChain->language() == tc->language()
|
||||
&& item->toolChain->targetAbi() == tc->targetAbi();
|
||||
return *item->toolChain == *tc;
|
||||
};
|
||||
ToolChainTreeItem * const item = findOrDefault(itemsToRemove, matchItem);
|
||||
if (item) {
|
||||
|
Reference in New Issue
Block a user