Commit 5cf48f40 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Corrected project loading libary part

parent cada8d0a
......@@ -143,9 +143,9 @@ Library::deleteMedia( const QUuid& uuid )
}
void
Library::addMedia( const QFileInfo& fileInfo )
Library::addMedia( const QFileInfo& fileInfo, const QString& uuidStr )
{
Media* media = new Media( fileInfo.filePath() );
Media* media = new Media( fileInfo.filePath(), uuidStr );
m_nbLoadedMedias++;
QUuid id;
......@@ -361,7 +361,7 @@ Library::loadProject( const QDomElement& medias )
}
else
{
loadMedia( path, uuid );
addMedia( path, uuid );
}
if ( clipList.size() != 0 )
{
......
......@@ -104,7 +104,7 @@ public:
* \sa media( const QUuid& uuid)
* \sa clip( const QUuid& uuid )
*/
void addMedia( const QFileInfo& fileInfo );
void addMedia( const QFileInfo& fileInfo, const QString& uuidStr = QString() );
/**
* \brief Add the clip to the library
......
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