diff options
Diffstat (limited to 'src/qml/qml/qqmllistwrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmllistwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmllistwrapper.cpp b/src/qml/qml/qqmllistwrapper.cpp index 6d49b54cf4..ec34905ca3 100644 --- a/src/qml/qml/qqmllistwrapper.cpp +++ b/src/qml/qml/qqmllistwrapper.cpp @@ -119,7 +119,7 @@ Value QmlListWrapper::getIndexed(Managed *m, ExecutionContext *ctx, uint index, quint32 count = w->property.count ? w->property.count(&w->property) : 0; if (index < count && w->property.at) - return w->v8->newQObject(w->property.at(&w->property, index)); + return QV4::QObjectWrapper::wrap(ctx->engine, w->property.at(&w->property, index)); return Value::undefinedValue(); } |