be case insensitive for MacOSX, too
authorarthurchiao <arthurchiao@hotmail.com>
Fri, 8 Jul 2016 07:53:11 +0000 (15:53 +0800)
committerarthurchiao <arthurchiao@hotmail.com>
Fri, 8 Jul 2016 07:53:11 +0000 (15:53 +0800)
src/gui/folderman.cpp

index c81878e17301ec21625bf127f0c77e5f0b0d1f0b..88ec5835fc46ac6b79a21a3088be97d0c2d80649 100644 (file)
@@ -849,7 +849,7 @@ Folder *FolderMan::folderForPath(const QString &path)
     foreach(Folder* folder, this->map().values()) {
         const QString folderPath = folder->cleanPath()+QLatin1Char('/');
 
-        if(absolutePath.startsWith(folderPath, Utility::isWindows()?
+        if(absolutePath.startsWith(folderPath, (Utility::isWindows() || Utility::isMac())?
                     Qt::CaseInsensitive : Qt::CaseSensitive)) {
             //qDebug() << "found folder: " << folder->path() << " for " << absolutePath;
             return folder;