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

QmlDesigner.NodeInstances: Update after complete and not instance creation

parent 6d1af1fe
......@@ -80,10 +80,6 @@ void NodeInstanceServer::createInstances(const CreateInstancesCommand &command)
}
}
nodeInstanceClient()->valuesChanged(createValuesChangedCommand(instanceList));
nodeInstanceClient()->informationChanged(createAllInformationChangedCommand(instanceList, true));
nodeInstanceClient()->pixmapChanged(createPixmapChangedCommand(instanceList));
startRenderTimer();
}
......@@ -223,13 +219,21 @@ void NodeInstanceServer::changeState(const ChangeStateCommand &command)
void NodeInstanceServer::completeComponent(const CompleteComponentCommand &command)
{
QList<ServerNodeInstance> instanceList;
foreach(qint32 instanceId, command.instances()) {
if (hasInstanceForId(instanceId)) {
ServerNodeInstance instance = instanceForId(instanceId);
instance.doComponentComplete();
instanceList.append(instance);
m_componentCompletedVector.append(instanceId);
}
}
nodeInstanceClient()->valuesChanged(createValuesChangedCommand(instanceList));
nodeInstanceClient()->informationChanged(createAllInformationChangedCommand(instanceList, true));
nodeInstanceClient()->pixmapChanged(createPixmapChangedCommand(instanceList));
}
void NodeInstanceServer::addImport(const AddImportCommand &command)
......
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