From: Camila San Date: Tue, 20 Oct 2020 10:21:12 +0000 (+0200) Subject: Fix crash when clicking on folder with status 403 in the main dialog. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~101^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03b1c0b84ae4b752f7689d9e1d4620e74373ce42;p=nextcloud-desktop.git Fix crash when clicking on folder with status 403 in the main dialog. LsColJob was still being used after delete was called. Signed-off-by: Camila San --- diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 48197f0b7..e9f6974c8 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -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;