ignore case-sensitivity only on windows

This commit is contained in:
arthurchiao 2016-07-08 15:12:37 +08:00
parent 7a2a439426
commit 4da55b69df

View 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;
}