Fix crash when clicking on folder with status 403 in the main dialog.
authorCamila San <hello@camila.codes>
Tue, 20 Oct 2020 10:21:12 +0000 (12:21 +0200)
committerCamila San <hello@camila.codes>
Tue, 20 Oct 2020 14:19:27 +0000 (16:19 +0200)
LsColJob was still being used after delete was called.

Signed-off-by: Camila San <hello@camila.codes>
src/gui/folderstatusmodel.cpp

index 48197f0b7359a431e4f16d05a9a2eff194a4e2e8..e9f6974c82660eb39b67c6db59677c973f912d3b 100644 (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;