Merge pull request #2568 from nextcloud/fix-macos-crash-403-folder-view

Fix crash when clicking on folder with status 403 in the main dialog.
This commit is contained in:
Kevin Ottens 2020-10-20 16:38:13 +02:00 committed by GitHub
commit 534f0567bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1241,7 +1241,7 @@ bool FolderStatusModel::SubFolderInfo::hasLabel() const
void FolderStatusModel::SubFolderInfo::resetSubs(FolderStatusModel *model, QModelIndex index)
{
_fetched = false;
delete _fetchingJob;
_fetchingJob->deleteLater();
if (hasLabel()) {
model->beginRemoveRows(index, 0, 0);
_fetchingLabel = false;