[Pkg-owncloud-commits] [owncloud-client] 88/121: ignore case-sensitivity only on windows

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Jul 28 15:32:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4da55b69df1d897d5d21f4cec270a89ce71eeb3b
Author: arthurchiao <arthurchiao at hotmail.com>
Date:   Fri Jul 8 15:12:37 2016 +0800

    ignore case-sensitivity only on windows
---
 src/gui/folderman.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp
index 00c59e8..c81878e 100644
--- a/src/gui/folderman.cpp
+++ b/src/gui/folderman.cpp
@@ -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;
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list