mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
Trim entity properties set from JS that are strings
This commit is contained in:
parent
36631dd3a3
commit
298a81cea9
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