Commit 3affbed2 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Android: Fix parameters for the Ant script file dialog

Making sure that the file name field has "ant.bat" set, and
that the filtering really works.

This patch also ensures that native file separators are shown.

Task-Number: QTCREATORBUG-11628
Change-Id: Ibab8c145d0b832e5ad2e2ff62a81818e4044f13e
Reviewed-by: default avatarDaniel Teske <>
parent 93e97432
......@@ -414,19 +414,19 @@ void AndroidSettingsWidget::browseNDKLocation()
void AndroidSettingsWidget::browseAntLocation()
QString dir;
QString antApp;
QString filter;
if (Utils::HostOsInfo::isWindowsHost()) {
dir = QDir::homePath();
antApp = QLatin1String("ant.bat");
dir = QDir::homePath() + QLatin1String("/ant.bat");
filter = QLatin1String("ant (ant.bat)");
} else {
dir = QLatin1String("/usr/bin/ant");
antApp = QLatin1String("ant");
filter = QLatin1String("ant (ant)");
const QString file =
QFileDialog::getOpenFileName(this, tr("Select ant Script"), dir, antApp);
QFileDialog::getOpenFileName(this, tr("Select ant Script"), dir, filter);
if (!file.length())
Supports Markdown
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