mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +02:00
Merge pull request #4620 from Atlante45/remove_url_extra_whitespace
Trim entity properties set from JS that are strings
This commit is contained in:
commit
21dd87c11c
1 changed files with 1 additions and 1 deletions
|
@ -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); \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue