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 <hello@camila.codes>
This commit is contained in:
Camila San 2020-10-20 12:21:12 +02:00
parent 671ca522ea
commit 03b1c0b84a
No known key found for this signature in database
GPG key ID: 544A4C2534D90695

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;