pop up a warning if we can't find libftd2xx

This commit is contained in:
Sean C. Rhea
2009-01-24 20:09:13 +00:00
parent a4ed637853
commit 5353db25df
3 changed files with 10 additions and 7 deletions

View File

@@ -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;
}