Commit 57dc6d22 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TrackWorkflow: Emitting clipMoved signal. Fixes undo for clip moving.

parent 3ab2d164
......@@ -348,7 +348,8 @@ TracksView::moveMediaItem( TrackWorkflow *tw, ClipHelper *ch, qint64 time )
{
AbstractGraphicsMediaItem* item =
dynamic_cast<AbstractGraphicsMediaItem*>( sceneItems.at( i ) );
if ( !item || item->uuid() != ch->uuid() ) continue;
if ( !item || item->uuid() != ch->uuid() )
continue;
moveMediaItem( item, tw->trackId(), time );
}
updateDuration();
......
......@@ -378,6 +378,7 @@ void TrackWorkflow::moveClip( const QUuid& id, qint64 startingFrame )
m_clips[startingFrame] = cw;
cw->requireResync();
computeLength();
emit clipMoved( this, cw->getClipHelper(), startingFrame );
return ;
}
++it;
......
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