From 1ee9cac62a49c77734074854ce2ffb51a6652c17 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Fri, 5 Jan 2018 10:08:19 +0100 Subject: [PATCH] Fix compilation (type error) --- src/bin/projectitemmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/projectitemmodel.cpp b/src/bin/projectitemmodel.cpp index 8a9d5c347a..36875c51b0 100644 --- a/src/bin/projectitemmodel.cpp +++ b/src/bin/projectitemmodel.cpp @@ -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; }