Josef Rokos 9 years ago
commit 63cd40949e

@ -41,7 +41,8 @@ public:
for (int i = 0; i < objSettings->metaObject()->propertyCount(); i++) for (int i = 0; i < objSettings->metaObject()->propertyCount(); i++)
{ {
const char *propName = objSettings->metaObject()->property(i).name(); const char *propName = objSettings->metaObject()->property(i).name();
QVariant varVal = val.toObject()[propName].toVariant(); QJsonValue v = val.toObject()[propName];
QVariant varVal = v.toVariant();
objSettings->setProperty(propName, varVal); objSettings->setProperty(propName, varVal);
} }

Loading…
Cancel
Save