X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Futil.cpp;h=30874ebadcaf6bd9df0babe5065b7fe62f9ba376;hb=0433bb7cef1ffca603bbcc61fa229d62467a8ea2;hp=33f6b4dfe375d861782bb6140d201c439af4eb81;hpb=bb631d7ca67c86dd758428fb0e18b905514a16e3;p=evaf
diff --git a/src/libs/Common/util.cpp b/src/libs/Common/util.cpp
index 33f6b4d..30874eb 100644
--- a/src/libs/Common/util.cpp
+++ b/src/libs/Common/util.cpp
@@ -87,6 +87,11 @@ QVariant eVaf::Common::toVariant(QString const & value, QVariant const & default
if (ok)
return QVariant(c);
}
+ else if (value.startsWith('&')) {
+ QString c = strFromEscapedCharArray(value.toLatin1());
+ if (c.size() > 0)
+ return QVariant(c.at(0));
+ }
else
return QVariant(value.at(0));
}