[Pkg-owncloud-commits] [owncloud-client] 454/498: FolderStatusModel: do not expand the unconfimred folder themselfs

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:17 UTC 2015


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 ba896eabfb59dfc59bf6919c8e287104a461dace
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed Aug 5 15:00:21 2015 +0200

    FolderStatusModel: do not expand the unconfimred folder themselfs
---
 src/gui/folderstatusmodel.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index a4a8f4b..499ee7c 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -468,14 +468,15 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list_)
                 }
             }
         }
-        newInfo._isUndecided = selectiveSyncUndecidedList.contains(path);
-        parentInfo->_subs.append(newInfo);
 
         foreach(const QString &str , selectiveSyncUndecidedList) {
-            if (str.startsWith(path)) {
+            if (str == path) {
+                newInfo._isUndecided = true;
+            } else if (str.startsWith(path)) {
                 undecidedIndexes.append(newInfo._pathIdx.last());
             }
         }
+        parentInfo->_subs.append(newInfo);
     }
 
     endInsertRows();

-- 
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