From: Hannah von Reth Date: Wed, 22 Jul 2020 19:06:09 +0000 (+0200) Subject: Fix assertion introduced by e1ca612c5d3087e02f6b7f8e454224e0b88e82ad X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~73 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=54cc2be00f24e37430a29189c2f17b9fa5ae229d;p=nextcloud-desktop.git Fix assertion introduced by e1ca612c5d3087e02f6b7f8e454224e0b88e82ad [ fatal default ]:ASSERT: "last < rowCount(parent)" in file C:\_\17a9f6ae\qtbase-everywhere-src-5.12.9\src\corelib\itemmodels\qabstractitemmodel.cpp, line 2787 e1ca612c5d3087e02f6b7f8e454224e0b88e82ad stopped adding sub folders so we can return the actual size. --- diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 6c56ae39d..5f853cd8a 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -370,8 +370,6 @@ int FolderStatusModel::rowCount(const QModelIndex &parent) const auto info = infoForIndex(parent); if (!info) return 0; - if (info->_folder && !info->_folder->supportsSelectiveSync()) - return 0; if (info->hasLabel()) return 1; return info->_subs.count();