From 54cc2be00f24e37430a29189c2f17b9fa5ae229d Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Wed, 22 Jul 2020 21:06:09 +0200 Subject: [PATCH] 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. --- src/gui/folderstatusmodel.cpp | 2 -- 1 file changed, 2 deletions(-) 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(); -- 2.30.2