Browse Source

Fix review comments.

Signed-off-by: allexzander <blackslayer4@gmail.com>
allexzander 4 years ago
parent
commit
5dd310c21c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/common/filesystembase.cpp

+ 2 - 1
src/common/filesystembase.cpp

@@ -482,7 +482,8 @@ bool FileSystem::isLnkFile(const QString &filename)
 
 bool FileSystem::isExcludeFile(const QString &filename)
 {
-    return filename.endsWith(QStringLiteral("sync-exclude.lst")) || filename.endsWith(QStringLiteral("exclude.lst"));
+    return filename.compare(QStringLiteral(".sync-exclude.lst"), Qt::CaseInsensitive) == 0
+        || filename.compare(QStringLiteral("exclude.lst"), Qt::CaseInsensitive) == 0;
 }
 
 bool FileSystem::isJunction(const QString &filename)