logic: Fixed single header files within indexed paths were not indexed (issue #513)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user