Commit 25e206f5 authored by Daniel Teske's avatar Daniel Teske

AndroidSettingsDialog: Don't clear sdk/ndk setting on canceling browse

Task-number: QTCREATORBUG-11410
Change-Id: I0efc6521d2e00597b45080455d03e83b3966f103
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent d90d6f40
......@@ -375,6 +375,8 @@ void AndroidSettingsWidget::browseSDKLocation()
Utils::FileName dir = Utils::FileName::fromString(
QFileDialog::getExistingDirectory(this, tr("Select Android SDK folder"),
m_ui->SDKLocationLineEdit->text()));
if (dir.isEmpty())
return;
m_ui->SDKLocationLineEdit->setText(dir.toUserOutput());
sdkLocationEditingFinished();
}
......@@ -384,6 +386,8 @@ void AndroidSettingsWidget::browseNDKLocation()
Utils::FileName dir = Utils::FileName::fromString(
QFileDialog::getExistingDirectory(this, tr("Select Android NDK folder"),
m_ui->NDKLocationLineEdit->text()));
if (dir.isEmpty())
return;
m_ui->NDKLocationLineEdit->setText(dir.toUserOutput());
ndkLocationEditingFinished();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment