Commit 74d9d858 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Don't emit empty preview images

Change-Id: I39ef759e56310dcac918e2b0f8005d7d9e179f30
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent ef839d61
......@@ -1162,11 +1162,13 @@ void NodeInstanceView::statePreviewImagesChanged(const StatePreviewImageChangedC
foreach (const ImageContainer &container, command.previews()) {
if (container.keyNumber() == -1) {
m_baseStatePreviewImage = container.image();
previewImageChangeVector.append(rootModelNode());
if (!container.image().isNull())
previewImageChangeVector.append(rootModelNode());
} else if (hasInstanceForId(container.instanceId())) {
ModelNode node = modelNodeForInternalId(container.instanceId());
m_statePreviewImage.insert(node, container.image());
previewImageChangeVector.append(node);
if (!container.image().isNull())
previewImageChangeVector.append(node);
}
}
......
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