Commit dffb1cde authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Don't create preview for non root item



Change-Id: I4456cff66c2e532a787f176bd6d62bbda80fb4f3
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 139f5645
...@@ -65,6 +65,9 @@ void Qt5PreviewNodeInstanceServer::collectItemChangesAndSendChangeCommands() ...@@ -65,6 +65,9 @@ void Qt5PreviewNodeInstanceServer::collectItemChangesAndSendChangeCommands()
{ {
static bool inFunction = false; static bool inFunction = false;
if (rootNodeInstance().internalSGItem() == 0)
return;
if (!inFunction && nodeInstanceClient()->bytesToWrite() < 10000) { if (!inFunction && nodeInstanceClient()->bytesToWrite() < 10000) {
inFunction = true; inFunction = true;
QVector<ImageContainer> imageContainerVector; QVector<ImageContainer> imageContainerVector;
......
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