]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
ignore case-sensitivity only on windows
authorarthurchiao <arthurchiao@hotmail.com>
Fri, 8 Jul 2016 07:12:37 +0000 (15:12 +0800)
committerarthurchiao <arthurchiao@hotmail.com>
Fri, 8 Jul 2016 07:12:37 +0000 (15:12 +0800)
src/gui/folderman.cpp

index 00c59e8fd0b0f8db04f73660a735956bc68689ee..c81878e17301ec21625bf127f0c77e5f0b0d1f0b 100644 (file)
@@ -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;
         }