summaryrefslogtreecommitdiffstats
path: root/src/script/qscriptvalueimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/qscriptvalueimpl.cpp')
-rw-r--r--src/script/qscriptvalueimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/qscriptvalueimpl.cpp b/src/script/qscriptvalueimpl.cpp
index a890839..7c7b711 100644
--- a/src/script/qscriptvalueimpl.cpp
+++ b/src/script/qscriptvalueimpl.cpp
@@ -339,6 +339,8 @@ QVariant QScriptValueImpl::toVariant() const
if (isQObject())
return qVariantFromValue(toQObject());
#endif
+ if (isArray())
+ return QScriptEnginePrivate::variantListFromArray(*this);
QScriptValueImpl v = engine()->toPrimitive(*this);
if (!v.isObject())