[vlmc-devel] commit: ImportController: Don't import an already loaded media. ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Wed Mar 10 23:43:46 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Wed Mar 10 23:43:30 2010 +0100| [fc7b6b06a9ed1429a943a5464909b90462c42953] | committer: Hugo Beauzee-Luyssen 

ImportController: Don't import an already loaded media.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=fc7b6b06a9ed1429a943a5464909b90462c42953
---

 src/Gui/import/ImportController.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index ef7e91f..041127f 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -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 );
 



More information about the Vlmc-devel mailing list