From: Hannah von Reth Date: Mon, 9 Mar 2020 16:45:19 +0000 (+0100) Subject: Don't insert items into the folder model if selectiveSync is not supported X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~126 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d63d4cdf623d82ebe32e51f336f5395f395af5fe;p=nextcloud-desktop.git 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 --- diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index ee26988dd..8741a1f16 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -630,6 +630,9 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list) if (!parentInfo) { return; } + if (!parentInfo->_folder->supportsSelectiveSync()) { + return; + } ASSERT(parentInfo->_fetchingJob == job); ASSERT(parentInfo->_subs.isEmpty());