Commit e774127f authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Search by name and then by label and only if found add it to pi exec drivers.

parent ab1f9361
......@@ -121,12 +121,19 @@ namespace WebManager
QJsonArray array = json.array();
if (array.isEmpty())
return false;
QStringList piExecDrivers;
QMapIterator<QString, QString> i(pi->drivers);
while (i.hasNext())
QString name =;
piExecDrivers << DriverManager::Instance()->findDriverByName(name)->getDriver();
DriverInfo *driver = DriverManager::Instance()->findDriverByName(name);
if (driver == NULL)
driver = DriverManager::Instance()->findDriverByLabel(name);
if (driver)
piExecDrivers << driver->getDriver();
if (array.count() < piExecDrivers.count())
Supports Markdown
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