From 4b8d790ea84cea66af17c6a46bb661e457c80060 Mon Sep 17 00:00:00 2001 From: Zdenek Jonak Date: Fri, 26 Feb 2016 13:46:04 +0100 Subject: [PATCH] change code to avoid bug in qt5.3 --- core/settingsservice.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/settingsservice.h b/core/settingsservice.h index 4015545..3f137e9 100644 --- a/core/settingsservice.h +++ b/core/settingsservice.h @@ -40,8 +40,9 @@ public: for (int i = 0; i < objSettings->metaObject()->propertyCount(); i++) { - const char *propName = objSettings->metaObject()->property(i).name(); - QVariant varVal = val.toObject()[propName].toVariant(); + const char *propName = objSettings->metaObject()->property(i).name(); + QJsonValue v = val.toObject()[propName]; + QVariant varVal = v.toVariant(); objSettings->setProperty(propName, varVal); }