Commit 15504d4d authored by Daniel Teske's avatar Daniel Teske

AndroidSettingsWidget: Start browsing for NDK/SDK at the current value

Change-Id: Ic1c5d6b015306108955a536845dd204dc8474a0d
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
Reviewed-by: default avatarBogDan Vatra <bogdan@kde.org>
parent e4ce44c0
......@@ -309,7 +309,9 @@ void AndroidSettingsWidget::openJDKLocationEditingFinished()
void AndroidSettingsWidget::browseSDKLocation()
{
Utils::FileName dir = Utils::FileName::fromString(QFileDialog::getExistingDirectory(this, tr("Select Android SDK folder")));
Utils::FileName dir = Utils::FileName::fromString(
QFileDialog::getExistingDirectory(this, tr("Select Android SDK folder"),
m_ui->SDKLocationLineEdit->text()));
if (!checkSDK(dir))
return;
m_ui->SDKLocationLineEdit->setText(dir.toUserOutput());
......@@ -318,7 +320,9 @@ void AndroidSettingsWidget::browseSDKLocation()
void AndroidSettingsWidget::browseNDKLocation()
{
Utils::FileName dir = Utils::FileName::fromString(QFileDialog::getExistingDirectory(this, tr("Select Android NDK folder")));
Utils::FileName dir = Utils::FileName::fromString(
QFileDialog::getExistingDirectory(this, tr("Select Android NDK folder"),
m_ui->NDKLocationLineEdit->text()));
if (!checkNDK(dir))
return;
m_ui->NDKLocationLineEdit->setText(dir.toUserOutput());
......
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