]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
fix #5015 overlay icon not show: compare folder paths with no case-sensitivity
authorarthurchiao <arthurchiao@hotmail.com>
Fri, 1 Jul 2016 05:03:42 +0000 (13:03 +0800)
committerarthurchiao <arthurchiao@hotmail.com>
Fri, 1 Jul 2016 05:03:42 +0000 (13:03 +0800)
shell_integration/windows/OCOverlays/OCOverlay.cpp
src/gui/folderman.cpp

index d8de36cf4640722384593a77594e1aae5ffc200f..a5b6938fcd1b9f96af6bec7095b5db25cd0219f2 100644 (file)
@@ -110,17 +110,17 @@ IFACEMETHODIMP OCOverlay::GetPriority(int *pPriority)
        // we order this in terms of likelyhood
        switch (_state) {
        case State_OK:
-               *pPriority = 0;
+               *pPriority = 0; break;
        case State_OKShared:
-               *pPriority = 1;
+               *pPriority = 1; break;
        case State_Warning:
-               *pPriority = 2;
+               *pPriority = 2; break;
        case State_Sync:
-               *pPriority = 3;
+               *pPriority = 3; break;
        case State_Error:
-               *pPriority = 4;
+               *pPriority = 4; break;
        default:
-               *pPriority = 5;
+               *pPriority = 5; break;
        }
 
        return S_OK;
index d39199eb2a180f461d65389d970e810ea68ab5d8..00c59e8fd0b0f8db04f73660a735956bc68689ee 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)) {
+        if(absolutePath.startsWith(folderPath, Qt::CaseInsensitive)) {
             //qDebug() << "found folder: " << folder->path() << " for " << absolutePath;
             return folder;
         }