mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
ignore case-sensitivity only on windows
This commit is contained in:
parent
7a2a439426
commit
4da55b69df
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue