logic: Fixed single header files within indexed paths were not indexed (issue #513)

This commit is contained in:
Eberhard Graether
2017-11-09 14:34:36 +01:00
parent 84da941fa4
commit 78d93e50dd
+14 -3
View File
@@ -26,10 +26,21 @@ FileRegister::FileRegister(
{ {
for (const FilePath& indexedPath: m_indexedPaths) for (const FilePath& indexedPath: m_indexedPaths)
{ {
if (indexedPath.contains(filePath)) if (indexedPath.isDirectory())
{ {
ret = true; if (indexedPath.contains(filePath))
break; {
ret = true;
break;
}
}
else
{
if (indexedPath == filePath)
{
ret = true;
break;
}
} }
} }
} }