diff --git a/src/lib/utility/file/FileRegister.cpp b/src/lib/utility/file/FileRegister.cpp index 3986265e..7979579a 100644 --- a/src/lib/utility/file/FileRegister.cpp +++ b/src/lib/utility/file/FileRegister.cpp @@ -26,10 +26,21 @@ FileRegister::FileRegister( { for (const FilePath& indexedPath: m_indexedPaths) { - if (indexedPath.contains(filePath)) + if (indexedPath.isDirectory()) { - ret = true; - break; + if (indexedPath.contains(filePath)) + { + ret = true; + break; + } + } + else + { + if (indexedPath == filePath) + { + ret = true; + break; + } } } }