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

ImportController: Don't import an already loaded media.

parent 3f933749
......@@ -166,6 +166,8 @@ ImportController::setUIMetaData( const Clip* clip )
void
ImportController::importMedia( const QString &filePath )
{
if ( Library::getInstance()->mediaAlreadyLoaded( filePath ) == true )
return ;
++m_nbMediaToLoad;
m_ui->progressBar->setMaximum( m_nbMediaToLoad );
......
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