Merge pull request #4620 from Atlante45/remove_url_extra_whitespace

Trim entity properties set from JS that are strings
This commit is contained in:
Brad Davis 2015-04-09 09:29:46 -07:00
commit 21dd87c11c

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); \
} \