Commit e78efa28 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

ImportController: Fixing bug when loading a clip with childs

parent 8b09f593
......@@ -250,7 +250,7 @@ ImportController::accept()
m_preview->stop();
collapseAllButCurrentPath();
foreach ( Clip* clip, m_temporaryMedias->clips().values() )
Library::getInstance()->addMedia( clip->getMedia() );
Library::getInstance()->addClip( clip );
m_temporaryMedias->removeAll();
m_clipRenderer->setClip( NULL );
done( Accepted );
......
......@@ -119,7 +119,6 @@ MediaContainer::removeAll()
while ( it != end )
{
emit clipRemoved( it.value() );
it.value()->clear();
++it;
}
m_clips.clear();
......
......@@ -123,7 +123,8 @@ public slots:
*/
void clear();
/**
* \brief Remove all the medias, but doesn't delete them.
* \brief Remove all the medias from the container, but doesn't clean nor
* delete them.
*/
void removeAll();
......
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