aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-15 12:49:37 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-15 12:54:49 +0000
commitf066fce2bb2aba6b94b44008877ac8e03b5b1f82 (patch)
tree07956ecc8b0206c47f63c27f65338154b700c67d /src/templates
parentec21d974f16a03d3ba0056dac0db7f458704611c (diff)
SpinBox: fix JS callback access
Avoid calling an uninitialized JS callback. This is a regression caused by lazy creation of the JS callbacks in 1f146d9. Change-Id: I1816b491ada0509c5664cffbcaa32ca987095b31 Task-number: QTBUG-51114 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/qquickspinbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/qquickspinbox.cpp b/src/templates/qquickspinbox.cpp
index bda955d0..255715e1 100644
--- a/src/templates/qquickspinbox.cpp
+++ b/src/templates/qquickspinbox.cpp
@@ -133,7 +133,7 @@ void QQuickSpinBoxPrivate::updateValue()
if (text.isValid()) {
QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(qmlEngine(q));
QJSValue loc(v4, QQmlLocale::wrap(v4, locale));
- QJSValue val = valueFromText.call(QJSValueList() << text.toString() << loc);
+ QJSValue val = q->valueFromText().call(QJSValueList() << text.toString() << loc);
q->setValue(val.toInt());
}
}