Commit 2abdee69 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Media: Refuse to add twice the same clip.

parent ae2a4107
......@@ -270,6 +270,13 @@ bool Media::matchMetaTag( const QString& tag ) const
void Media::addClip( Clip* clip )
{
if ( clip->getParent() != this )
return ;
foreach ( Clip *c, m_clips.values() )
{
if ( clip->begin() == c->begin() && clip->end() == clip->end() )
return ;
}
m_clips.insert( clip->uuid(), clip );
}
......
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