Merge remote-tracking branch 'origin/release/21.08'

wilder-portage
Laurent Montel 5 years ago
commit cc3e3fc879
  1. 4
      src/folder/foldertreewidgetproxymodel.cpp

@ -35,6 +35,7 @@ public:
bool checkQuotaExcedded(const QModelIndex &index, qreal &percentage) bool checkQuotaExcedded(const QModelIndex &index, qreal &percentage)
{ {
if (threshold >= 0.0) {
if (index.model()->hasChildren(index)) { if (index.model()->hasChildren(index)) {
const int rowCount = index.model()->rowCount(index); const int rowCount = index.model()->rowCount(index);
for (int row = 0; row < rowCount; row++) { for (int row = 0; row < rowCount; row++) {
@ -53,6 +54,7 @@ public:
} }
} }
} }
}
return false; return false;
} }
@ -60,7 +62,7 @@ public:
Akonadi::MimeTypeChecker checker; Akonadi::MimeTypeChecker checker;
QColor brokenAccountColor; QColor brokenAccountColor;
qreal threshold = 0.0; qreal threshold = -1.0;
FolderTreeWidgetProxyModel *const q; FolderTreeWidgetProxyModel *const q;
bool enableCheck = false; bool enableCheck = false;
bool hideVirtualFolder = false; bool hideVirtualFolder = false;

Loading…
Cancel
Save