Trim entity properties set from JS that are strings

This commit is contained in:
Atlante45 2015-04-09 14:42:26 +02:00
parent 36631dd3a3
commit 298a81cea9

View file

@ -201,7 +201,7 @@
#define COPY_PROPERTY_FROM_QSCRIPTVALUE_STRING(P, S)\
QScriptValue P = object.property(#P); \
if (P.isValid()) { \
QString newValue = P.toVariant().toString();\
QString newValue = P.toVariant().toString().trimmed();\
if (_defaultSettings || newValue != _##P) { \
S(newValue); \
} \