FolderStatusModel: do not expand the unconfimred folder themselfs

This commit is contained in:
Olivier Goffart 2015-08-05 15:00:21 +02:00
parent 646890abb3
commit ba896eabfb

View file

@ -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();