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

Fix not loading sub Clips when their MediaListView is shown


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 2a374eba
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ MediaListView::showSubClips( const QUuid &uuid )
Clip *clip = m_mediaContainer->clip( uuid );
MediaListView* view = new MediaListView( m_nav );
view->setMediaContainer( clip->getChilds() );
clip->getChilds()->reloadAllClips();
m_nav->pushViewController( view );
}
......
......@@ -176,6 +176,13 @@ MediaContainer::clips() const
return m_clips;
}
void
MediaContainer::reloadAllClips()
{
for ( auto *c: m_clips )
emit newClipLoaded( c );
}
Clip*
MediaContainer::getParent()
{
......
......@@ -111,6 +111,11 @@ public:
*/
const QHash<QUuid, Clip*> &clips() const;
/**
* \breif Emit newClipLoaded from all clips
*/
void reloadAllClips();
Clip* getParent();
quint32 count() const;
......
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