forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user