Fix compilation (type error)

This commit is contained in:
Jean-Baptiste Mardelle
2018-01-05 10:08:19 +01:00
parent 4476bae855
commit 1ee9cac62a

View File

@@ -704,7 +704,7 @@ bool ProjectItemModel::loadFolders(Mlt::Properties &folders)
if (upLinks.count(f.first) == 0) {
upLinks[f.first] = -1;
}
if (f.first != QStringLiteral("-1") && downLinks.count(upLinks[f.first]) == 0) {
if (f.first != -1 && downLinks.count(upLinks[f.first]) == 0) {
qDebug() << "Warning: parent folder " << upLinks[f.first] << "for folder" << f.first << "is invalid. Folder will be placed in topmost directory.";
upLinks[f.first] = -1;
}