forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.0'
This commit is contained in:
@@ -857,7 +857,13 @@ void AndroidConfigurations::updateAutomaticKitList()
|
||||
}
|
||||
|
||||
DeviceManager *dm = DeviceManager::instance();
|
||||
IDevice::ConstPtr device = dm->find(Core::Id(Constants::ANDROID_DEVICE_ID)); // should always exist
|
||||
IDevice::ConstPtr device = dm->find(Core::Id(Constants::ANDROID_DEVICE_ID));
|
||||
if (device.isNull()) {
|
||||
// no device, means no sdk path
|
||||
foreach (Kit *k, existingKits)
|
||||
KitManager::deregisterKit(k);
|
||||
return;
|
||||
}
|
||||
|
||||
// register new kits
|
||||
QList<Kit *> newKits;
|
||||
|
||||
@@ -370,7 +370,9 @@ void AndroidRunner::logcatReadStandardOutput()
|
||||
if (line.endsWith('\r'))
|
||||
line.chop(1);
|
||||
line.append('\n');
|
||||
if (line.startsWith("E/"))
|
||||
if (line.startsWith("E/")
|
||||
|| line.startsWith("D/Qt")
|
||||
|| line.startsWith("W/"))
|
||||
emit remoteErrorOutput(line);
|
||||
else
|
||||
emit remoteOutput(line);
|
||||
|
||||
@@ -313,10 +313,11 @@ void AndroidSettingsWidget::searchForAnt(const QString &location)
|
||||
QDir parentFolder = QFileInfo(location).absoluteDir();
|
||||
foreach (const QString &file, parentFolder.entryList()) {
|
||||
if (file.startsWith(QLatin1String("apache-ant"))) {
|
||||
QString ant = parentFolder.absolutePath() + QLatin1Char('/') + file + QLatin1String("/bin/ant.bat");
|
||||
if (QFileInfo(ant).exists()) {
|
||||
m_androidConfig.antLocation = Utils::FileName::fromString(ant);
|
||||
m_ui->AntLocationLineEdit->setText(ant);
|
||||
Utils::FileName ant = Utils::FileName::fromString(parentFolder.absolutePath());
|
||||
ant.appendPath(file).appendPath(QLatin1String("bin")).appendPath(QLatin1String("ant.bat"));
|
||||
if (ant.toFileInfo().exists()) {
|
||||
m_androidConfig.antLocation = ant;
|
||||
m_ui->AntLocationLineEdit->setText(ant.toUserOutput());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user