Commit d300289e authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

TrackWorkflow: Use insertMulti

More than one clip can be placed at a certain position.
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent fb35b822
......@@ -102,7 +102,7 @@ void
TrackWorkflow::addClip( ClipWorkflow* cw, qint64 start )
{
QWriteLocker lock( m_clipsLock );
m_clips.insert( start, cw );
m_clips.insertMulti( start, cw );
connect( cw, SIGNAL( effectAdded( EffectHelper*, qint64 ) ),
this, SLOT( __effectAdded( EffectHelper*, qint64 ) ) );
connect( cw, SIGNAL( effectMoved( EffectHelper*, qint64 ) ),
......@@ -380,7 +380,7 @@ TrackWorkflow::moveClip( const QUuid& id, qint64 startingFrame )
{
ClipWorkflow* cw = it.value();
m_clips.erase( it );
m_clips[startingFrame] = cw;
m_clips.insertMulti( startingFrame, cw );
cw->requireResync();
computeLength();
emit clipMoved( this, cw->getClipHelper()->uuid(), startingFrame );
......
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