projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
671ca52
)
Fix crash when clicking on folder with status 403 in the main dialog.
author
Camila San
<hello@camila.codes>
Tue, 20 Oct 2020 10:21:12 +0000
(12:21 +0200)
committer
Camila 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
patch
|
blob
|
history
diff --git
a/src/gui/folderstatusmodel.cpp
b/src/gui/folderstatusmodel.cpp
index 48197f0b7359a431e4f16d05a9a2eff194a4e2e8..e9f6974c82660eb39b67c6db59677c973f912d3b 100644
(file)
--- 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;