forked from qt-creator/qt-creator
Android/Ant selection: Work around file dialog bug on Mac
Task-number: QTCREATORBUG-12184 Change-Id: I2cb7c1549fc2201d4fbe163eb321b0ef11cc8a06 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
committed by
Daniel Teske
parent
372fc953cd
commit
e90b0c128e
@@ -424,6 +424,10 @@ void AndroidSettingsWidget::browseAntLocation()
|
||||
if (Utils::HostOsInfo::isWindowsHost()) {
|
||||
dir = QDir::homePath() + QLatin1String("/ant.bat");
|
||||
filter = QLatin1String("ant (ant.bat)");
|
||||
} else if (Utils::HostOsInfo::isMacHost()) {
|
||||
// work around QTBUG-7739 that prohibits filters that don't start with *
|
||||
dir = QLatin1String("/usr/bin/ant");
|
||||
filter = QLatin1String("ant (*ant)");
|
||||
} else {
|
||||
dir = QLatin1String("/usr/bin/ant");
|
||||
filter = QLatin1String("ant (ant)");
|
||||
|
||||
Reference in New Issue
Block a user