aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4function.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-09-12 10:23:40 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-09-12 09:25:53 +0000
commite9803945e926d3318fd3f26cfd25308418c55234 (patch)
tree38ef8be41d5d43ddeb650c5e3c995461b0cbc836 /src/qml/jsruntime/qv4function.cpp
parent29316abe1ad363179cfc2eefe31d085131d1dfd7 (diff)
Fix: QQmlBoundSignal really needs a call context
And not an empty class "context". This would trip an assert later on when the CreateCallContext instruction would be executed. Change-Id: I6ac7c2df7169990ced77bc9ba1e992d48bb201bb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
-rw-r--r--src/qml/jsruntime/qv4function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4function.cpp b/src/qml/jsruntime/qv4function.cpp
index 594810e498..234e3291d5 100644
--- a/src/qml/jsruntime/qv4function.cpp
+++ b/src/qml/jsruntime/qv4function.cpp
@@ -83,7 +83,7 @@ Function::~Function()
void Function::updateInternalClass(ExecutionEngine *engine, const QList<QByteArray> &parameters)
{
- internalClass = engine->internalClasses[EngineBase::Class_Empty];
+ internalClass = engine->internalClasses[EngineBase::Class_CallContext];
// iterate backwards, so we get the right ordering for duplicate names
Scope scope(engine);