removed extra condition
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
81207c6502
commit
18e628e873
1 changed files with 2 additions and 3 deletions
|
@ -269,9 +269,8 @@ bool FileIgnoreProxy::ignoreFile(QFileInfo fileInfo) const
|
|||
{
|
||||
auto fileName = fileInfo.fileName();
|
||||
auto path = relPath(fileInfo.absoluteFilePath());
|
||||
return (path.startsWith("..") || // just in case ignore files outside the gameroot
|
||||
std::any_of(m_ignoreFiles.cbegin(), m_ignoreFiles.cend(), [fileName](auto iFileName) { return fileName == iFileName; }) ||
|
||||
m_ignoreFilePaths.covers(path));
|
||||
return std::any_of(m_ignoreFiles.cbegin(), m_ignoreFiles.cend(), [fileName](auto iFileName) { return fileName == iFileName; }) ||
|
||||
m_ignoreFilePaths.covers(path);
|
||||
}
|
||||
|
||||
bool FileIgnoreProxy::filterFile(const QString& fileName) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue