mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 09:29:55 +00:00
pop up a warning if we can't find libftd2xx
This commit is contained in:
@@ -37,13 +37,10 @@ Device::listDevices(QString &err)
|
||||
QVector<DevicePtr> result;
|
||||
for (int i = 0; listFunctions && i < listFunctions->size(); ++i) {
|
||||
QVector<DevicePtr> tmp = (*listFunctions)[i](err);
|
||||
if (err == "") {
|
||||
for (int j = 0; j < tmp.size(); ++j)
|
||||
result.append(tmp[j]);
|
||||
}
|
||||
else {
|
||||
if (err == "")
|
||||
result << tmp;
|
||||
else
|
||||
err += "\n";
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user