Commit ec80aa80 authored by BogDan Vatra's avatar BogDan Vatra

Android: Skip empty lines

Otherwise AndroidConfig::connectedDevices will return unexisting devices.

Change-Id: I85e87ff48784bfeb37b591507408ace2656b08dc
Reviewed-by: default avatarhjk <>
parent 519cc8de
......@@ -553,7 +553,7 @@ QVector<AndroidDeviceInfo> AndroidConfig::connectedDevices(const QString &adbToo
.arg(adbToolPath + QLatin1String(" devices"));
return devices;
QStringList adbDevs = response.allOutput().split('\n');
QStringList adbDevs = response.allOutput().split('\n', QString::SkipEmptyParts);
if (adbDevs.empty())
return devices;
Markdown is supported
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