forked from qt-creator/qt-creator
Android: JDK location is a directory, use correct file chooser dialog
Task-number: QTCREATORBUG-9706 Change-Id: I0a1892eb94024529cf450926dee22e629ef85e0b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
@@ -377,7 +377,7 @@ void AndroidSettingsWidget::browseAntLocation()
|
|||||||
void AndroidSettingsWidget::browseOpenJDKLocation()
|
void AndroidSettingsWidget::browseOpenJDKLocation()
|
||||||
{
|
{
|
||||||
Utils::FileName openJDKPath = AndroidConfigurations::instance().openJDKPath();
|
Utils::FileName openJDKPath = AndroidConfigurations::instance().openJDKPath();
|
||||||
Utils::FileName file = Utils::FileName::fromString(QFileDialog::getOpenFileName(this, tr("Select OpenJDK Path"), openJDKPath.toString()));
|
Utils::FileName file = Utils::FileName::fromString(QFileDialog::getExistingDirectory(this, tr("Select OpenJDK Path"), openJDKPath.toString()));
|
||||||
if (file.isEmpty())
|
if (file.isEmpty())
|
||||||
return;
|
return;
|
||||||
m_ui->OpenJDKLocationLineEdit->setText(file.toUserOutput());
|
m_ui->OpenJDKLocationLineEdit->setText(file.toUserOutput());
|
||||||
|
|||||||
Reference in New Issue
Block a user