Merge branch 'v1_master' of https://git.shstk.ru/SHS/SHS into v1_master
This commit is contained in:
@@ -167,7 +167,7 @@ QByteArray SHS::blockConnectionModel(const BlockItem * block) {
|
|||||||
for (auto * bp: block->pins()) {
|
for (auto * bp: block->pins()) {
|
||||||
QString dev = bp->propertyValueByName("device").toString();
|
QString dev = bp->propertyValueByName("device").toString();
|
||||||
if (dev.isEmpty()) continue;
|
if (dev.isEmpty()) continue;
|
||||||
PIIODevice * d = PIIODevice::createFromFullPath(Q2PIString(dev));
|
PIIODevice * d = PIIODevice::createFromFullPath(Q2PIString(dev.trimmed()));
|
||||||
if (!d) continue;
|
if (!d) continue;
|
||||||
if (d->path().isEmpty()) continue;
|
if (d->path().isEmpty()) continue;
|
||||||
ce.addDevice(bp->text(), dev);
|
ce.addDevice(bp->text(), dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user