diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index 933af51..113fbf5 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -182,7 +182,7 @@ bool FileUtils::isOrUnder(QString pathA, QString pathB) { if(pathA[0] != "/") pathA.prepend("/"); - if(pathA[0] != "/") + if(pathB[0] != "/") pathB.prepend("/"); if(pathA.length() < pathB.length())