aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmllocale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmllocale.cpp')
-rw-r--r--src/qml/qml/qqmllocale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmllocale.cpp b/src/qml/qml/qqmllocale.cpp
index 4694e33abd..f248b8b495 100644
--- a/src/qml/qml/qqmllocale.cpp
+++ b/src/qml/qml/qqmllocale.cpp
@@ -814,7 +814,7 @@ QV4::Value QQmlLocale::locale(QV8Engine *v8engine, const QString &locale)
QQmlLocaleData *wrapper = new (engine->memoryManager) QQmlLocaleData(engine);
if (!locale.isEmpty())
wrapper->locale = QLocale(locale);
- wrapper->prototype = d->prototype.value().asObject();
+ wrapper->setPrototype(d->prototype.value().asObject());
return QV4::Value::fromObject(wrapper);
}