Commit 069ba8c8 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Library: Watch subclip creation to allow clips to be fetched directly from library

parent a554b495
......@@ -85,6 +85,15 @@ Library::addMedia( QSharedPointer<Media> media )
if ( m_media.contains( media->id() ) )
return;
m_media[media->id()] = media;
connect( media.data(), &Media::subclipAdded, [this]( Clip* c ) {
m_clips[c->uuid()] = c;
setCleanState( false );
});
connect( media.data(), &Media::subclipRemoved, [this]( const QUuid& uuid ) {
m_clips.remove( uuid );
// This seems wrong, for instance if we undo a clip splitting
setCleanState( false );
} );
}
bool
......
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