diff options
author | Daniel Teske <daniel.teske@digia.com> | 2013-11-11 13:14:10 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2013-11-11 13:30:33 +0100 |
commit | 82f7f67ddc6cefb4ef5033a576a4d0092aa3d5c3 (patch) | |
tree | 195c7180d94242dd24903d4bcb08437c2869ec3c /src/plugins/android/androidsettingswidget.cpp | |
parent | 358a99d346799fbd3f628592caa25be146a36b5f (diff) | |
download | qt-creator-82f7f67ddc6cefb4ef5033a576a4d0092aa3d5c3.tar.gz |
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>
Diffstat (limited to 'src/plugins/android/androidsettingswidget.cpp')
-rw-r--r-- | src/plugins/android/androidsettingswidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/android/androidsettingswidget.cpp b/src/plugins/android/androidsettingswidget.cpp index f2e7a5dc66..6668d0a783 100644 --- a/src/plugins/android/androidsettingswidget.cpp +++ b/src/plugins/android/androidsettingswidget.cpp @@ -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 |