Commit b0af88c0 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Tim Jenssen
Browse files

Fixing crasing Timer



A "raw" QObject (created instead of the Timer) will crash the engine later. Instead we setup
the QObject using createPrimitive().

Task-number: QTCREATORBUG-15916
Change-Id: I5f0dd9c887fd57d492222d221e54f267e12a5044
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 3c2f4089
......@@ -217,7 +217,7 @@ ServerNodeInstance ServerNodeInstance::create(NodeInstanceServer *nodeInstanceSe
if (object == 0)
object = new QQuickItem;
} else {
object = new QObject;
object = Internal::ObjectNodeInstance::createPrimitive("QtQml/QtObject", 2, 0, nodeInstanceServer->context());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment