QmlDesigner: Fix pasteKeyframesToTarget()

Because we attached the model inside the transaction,
then transaction begin message was not handled properly.

Change-Id: I77a56d7874061c0af907047e38a37fec4dab12c1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-09-13 13:03:00 +02:00
parent 1ff337089a
commit 73106f330a

View File

@@ -104,11 +104,9 @@ void TimelineActions::pasteKeyframesToTarget(const ModelNode &targetNode,
pasteModel->detachView(&view);
targetNode.view()->model()->attachView(&view);
view.executeInTransaction("TimelineActions::pasteKeyframesToTarget", [=, &view](){
targetNode.view()->model()->attachView(&view);
ModelNode nonConstTargetNode = targetNode;
nonConstTargetNode.validId();