Commit 307f55aa authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

When a clip job creates an mlt playlist, check if the file is already in...

When a clip job creates an mlt playlist, check if the file is already in project to avoid double insertion
parent d906e739
......@@ -4579,6 +4579,12 @@ void Bin::requestTranscoding(const QString &url, const QString &id)
bool Bin::addProjectClipInFolder(const QString &path, const QString &parentFolder, const QString &folderName)
{
// Check if the clip is already inserted in the project, if yes exit
QStringList existingIds = m_itemModel->getClipByUrl(QFileInfo(path));
if (!existingIds.isEmpty()) {
//selectClipById(existingIds.first());
return true;
}
Fun undo = []() { return true; };
Fun redo = []() { return true; };
// Check if folder exists
......
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