From 3335c733d7bb41c68be2bea4550b3db8d1953d0e Mon Sep 17 00:00:00 2001 From: arthurchiao Date: Fri, 8 Jul 2016 15:53:11 +0800 Subject: [PATCH] be case insensitive for MacOSX, too --- src/gui/folderman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index c81878e17..88ec5835f 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -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; -- 2.39.5