mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
Don't insert items into the folder model if selectiveSync is not supported
This fixes an assertion in FolderStatusModel::SubFolderInfo::resetSubs rowCount reported 0 but we actually had items in the model
This commit is contained in:
parent
9176afe263
commit
d63d4cdf62
1 changed files with 3 additions and 0 deletions
|
@ -630,6 +630,9 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list)
|
||||||
if (!parentInfo) {
|
if (!parentInfo) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!parentInfo->_folder->supportsSelectiveSync()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ASSERT(parentInfo->_fetchingJob == job);
|
ASSERT(parentInfo->_fetchingJob == job);
|
||||||
ASSERT(parentInfo->_subs.isEmpty());
|
ASSERT(parentInfo->_subs.isEmpty());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue