From ba896eabfb59dfc59bf6919c8e287104a461dace Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 5 Aug 2015 15:00:21 +0200 Subject: [PATCH] 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 a4a8f4be8c..499ee7c421 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();