Project: Fix bad comparison in isKnownFile

Broke by 43f57d3f31.

Task-number: QTCREATORBUG-19523
Change-Id: Id154f680b85d0238cf096fb0d56c779309c9f598
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2018-01-06 22:39:26 +02:00
committed by Tobias Hunger
parent 8e6fa26c83
commit e744e6677c

View File

@@ -739,7 +739,7 @@ bool Project::isKnownFile(const Utils::FileName &filename) const
const auto end = std::end(d->m_sortedNodeList);
const FileNode element(filename, FileType::Unknown, false);
const auto it = std::lower_bound(std::begin(d->m_sortedNodeList), end, &element, &nodeLessThan);
return (it == end) ? false : (*it)->filePath() != filename;
return (it == end) ? false : (*it)->filePath() == filename;
}
void Project::setProjectLanguages(Core::Context language)