ProjectExplorer: Fix ToolChain::isAutoDetected()

Amends d116559cd8.

Fixes: QTCREATORBUG-24545
Change-Id: I3a6c198a6ef2db91c4c3eb75721657e0c491e665
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Christian Kandeler
2020-09-08 16:54:11 +02:00
parent dd105095e9
commit 90a18fe7fa
2 changed files with 6 additions and 1 deletions

View File

@@ -155,6 +155,11 @@ void ToolChain::setDisplayName(const QString &name)
toolChainUpdated();
}
bool ToolChain::isAutoDetected() const
{
return detection() == AutoDetection || detection() == AutoDetectionFromSdk;
}
ToolChain::Detection ToolChain::detection() const
{
return d->m_detection;