Skip to content
Snippets Groups Projects
Commit e6d232d4 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.designDocumentController: fix for copy n paste

We have to clear the cache of the meta system.

Task-number:QTCREATORBUG-5578
Change-Id: I6f7a77609fb5535ade5925a405ae156edfee2b22
Reviewed-on: http://codereview.qt.nokia.com/2215


Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 55274e38
No related branches found
No related tags found
No related merge requests found
......@@ -775,6 +775,9 @@ void DesignDocumentController::paste()
targetNode.nodeListProperty(defaultProperty).reparentHere(pastedNode);
}
transaction.commit();
NodeMetaInfo::clearCache();
view.setSelectedModelNodes(QList<ModelNode>() << pastedNode);
} catch (RewritingException &e) {
qWarning() << e.description(); //silent error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment