mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
FolderStatusModel: do not expand the unconfimred folder themselfs
This commit is contained in:
parent
646890abb3
commit
ba896eabfb
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue