From 03b1c0b84ae4b752f7689d9e1d4620e74373ce42 Mon Sep 17 00:00:00 2001 From: Camila San Date: Tue, 20 Oct 2020 12:21:12 +0200 Subject: [PATCH] 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 --- src/gui/folderstatusmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;