From 4da55b69df1d897d5d21f4cec270a89ce71eeb3b Mon Sep 17 00:00:00 2001 From: arthurchiao Date: Fri, 8 Jul 2016 15:12:37 +0800 Subject: [PATCH] ignore case-sensitivity only on windows --- src/gui/folderman.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 00c59e8fd..c81878e17 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -849,7 +849,8 @@ Folder *FolderMan::folderForPath(const QString &path) foreach(Folder* folder, this->map().values()) { const QString folderPath = folder->cleanPath()+QLatin1Char('/'); - if(absolutePath.startsWith(folderPath, Qt::CaseInsensitive)) { + if(absolutePath.startsWith(folderPath, Utility::isWindows()? + Qt::CaseInsensitive : Qt::CaseSensitive)) { //qDebug() << "found folder: " << folder->path() << " for " << absolutePath; return folder; }