Skip to content
Snippets Groups Projects
Commit f7b16b42 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

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

parent 650c6607
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment