forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user