forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.12'
Conflicts: src/plugins/android/androidextralibrarylistmodel.cpp Change-Id: Ica69c24e83deff819e640dcb4c2682a554d8a2d2
This commit is contained in:
@@ -616,8 +616,9 @@ QVector<AndroidDeviceInfo> AndroidConfig::connectedDevices(const FilePath &adbTo
|
||||
if (adbDevs.empty())
|
||||
return devices;
|
||||
|
||||
while (adbDevs.first().startsWith("* daemon"))
|
||||
adbDevs.removeFirst(); // remove the daemon logs
|
||||
for (const QString line : adbDevs) // remove the daemon logs
|
||||
if (line.startsWith("* daemon"))
|
||||
adbDevs.removeOne(line);
|
||||
adbDevs.removeFirst(); // remove "List of devices attached" header line
|
||||
|
||||
// workaround for '????????????' serial numbers:
|
||||
|
||||
@@ -90,7 +90,8 @@ void AndroidExtraLibraryListModel::updateModel()
|
||||
{
|
||||
const QString buildKey = m_buildSystem->target()->activeBuildKey();
|
||||
const ProjectNode *node = m_buildSystem->target()->project()->findNodeForBuildKey(buildKey);
|
||||
QTC_ASSERT(node, return);
|
||||
if (!node)
|
||||
return;
|
||||
|
||||
if (node->parseInProgress()) {
|
||||
emit enabledChanged(false);
|
||||
|
||||
@@ -206,8 +206,10 @@ AndroidDeviceInfoList AndroidToolManager::androidVirtualDevices(const Utils::Fil
|
||||
if (avds.empty())
|
||||
return devices;
|
||||
|
||||
while (avds.first().startsWith(QLatin1String("* daemon")))
|
||||
avds.removeFirst(); // remove the daemon logs
|
||||
for (const QString line : avds) // remove the daemon logs
|
||||
if (line.startsWith("* daemon"))
|
||||
avds.removeOne(line);
|
||||
|
||||
avds.removeFirst(); // remove "List of devices attached" header line
|
||||
|
||||
bool nextLineIsTargetLine = false;
|
||||
|
||||
Reference in New Issue
Block a user