Android Settings Page: Disable avd settings if no sdk is configured

Task-number: QTCREATORBUG-10719
Change-Id: Icba278610119a204b19b0422bfa778d9a2c71d86
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
Daniel Teske
2013-11-11 13:14:10 +01:00
parent 358a99d346
commit 82f7f67ddc

View File

@@ -146,10 +146,12 @@ QString AndroidSettingsWidget::searchKeywords() const
void AndroidSettingsWidget::initGui()
{
m_ui->setupUi(this);
if (checkSDK(m_androidConfig.sdkLocation))
if (checkSDK(m_androidConfig.sdkLocation)) {
m_ui->SDKLocationLineEdit->setText(m_androidConfig.sdkLocation.toUserOutput());
else
} else {
m_androidConfig.sdkLocation.clear();
m_ui->AVDManagerFrame->setEnabled(false);
}
if (checkNDK(m_androidConfig.ndkLocation))
m_ui->NDKLocationLineEdit->setText(m_androidConfig.ndkLocation.toUserOutput());
else