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

@@ -101,6 +101,12 @@ DownloadRideDialog::scanDevices()
listWidget->clear();
QString err;
devList = Device::listDevices(err);
if (err != "") {
QString msg = "Warning:\n\n" + err + "You may need to (re)install "
"the FTDI drivers before downloading.";
QMessageBox::warning(0, "Error Loading Device Drivers", msg,
QMessageBox::Ok, QMessageBox::NoButton);
}
for (int i = 0; i < devList.size(); ++i)
new QListWidgetItem(devList[i]->name(), listWidget);
if (listWidget->count() > 0) {