Internal::GccToolChainConfigWidget::GccToolChainConfigWidget(GccToolChain *tc) :
ToolChainConfigWidget(tc),
m_compilerPath(new Utils::PathChooser),
- m_abiWidget(new AbiWidget)
+ m_abiWidget(new AbiWidget),
+ m_isReadOnly(false)
{
Q_ASSERT(tc);
GccToolChain *tc = static_cast<GccToolChain *>(toolChain());
m_compilerPath->setPath(tc->compilerPath());
m_abiWidget->setAbis(tc->supportedAbis(), tc->targetAbi());
+ if (!m_isReadOnly && !m_compilerPath->path().isEmpty())
+ m_abiWidget->setEnabled(true);
setDebuggerCommand(tc->debuggerCommand());
blockSignals(blocked);
}
{
m_compilerPath->setEnabled(false);
m_abiWidget->setEnabled(false);
+ m_isReadOnly = true;
ToolChainConfigWidget::makeReadOnly();
}