diff --git a/QScadaEntity/qscadaconnecteddeviceinfo.cpp b/QScadaEntity/qscadaconnecteddeviceinfo.cpp index 8ad0a07..4115546 100644 --- a/QScadaEntity/qscadaconnecteddeviceinfo.cpp +++ b/QScadaEntity/qscadaconnecteddeviceinfo.cpp @@ -250,7 +250,7 @@ QString QConnectedDeviceInfo::XMLFromDeviceInfo(QList deviceL rDevices += i.formTagValue(tag_geometry_height, QString::number(object->info()->geometry().height()), true, 4); rDevices += i.formTagValue(order_level, QString::number(object->info()->orderLevel()), true, 4); rDevices += i.formTagValue(tag_ui_resource, object->info()->uiResourcePath(), true, 4); - if (object->info()->type() == QScadaObjectTypeQML) { + if (static_cast(object)->QMLProperties().count() > 0) { rDevices += QConnectedDeviceInfo::formProperties(static_cast(object)->QMLProperties()); } rDevices += i.formTag(tag_object, true, true, 3);//"\t\t\t\n";