ProjectExplorer: fix gcc toolchain abi detection

This updates the selected abi in the toolchain widget
when editing the binary path to the compiler.

Task-number: QTCREATORBUG-19673
Change-Id: I8df69af207360364fb6f75e94a3aa26f84fd13d9
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
David Schulz
2018-03-08 10:10:36 +01:00
committed by Tobias Hunger
parent f37982d859
commit 84e0573cad

View File

@@ -1185,7 +1185,7 @@ void GccToolChainConfigWidget::handleCompilerCommandChange()
{ {
bool haveCompiler = false; bool haveCompiler = false;
Abi currentAbi = m_abiWidget->currentAbi(); Abi currentAbi = m_abiWidget->currentAbi();
bool customAbi = m_abiWidget->isCustomAbi(); bool customAbi = m_abiWidget->isCustomAbi() && m_abiWidget->isEnabled();
FileName path = m_compilerCommand->fileName(); FileName path = m_compilerCommand->fileName();
QList<Abi> abiList; QList<Abi> abiList;