From 0a14ae13cb03bf5a38ed782fdf418b07776e42f0 Mon Sep 17 00:00:00 2001 From: vshevchyk Date: Wed, 24 Jul 2019 20:56:01 +0300 Subject: [PATCH] Fixed issue with saving QML properties --- QScadaEntity/qscadaconnecteddeviceinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";