Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-08-27 18:33:02 +0300
committerHannah von Reth <vonreth@kde.org>2021-08-27 20:16:35 +0300
commitd9980c097a014d7edf8c7f97427bcf3007772e0a (patch)
treef6ea293f2e885ba51784d4e6aed74029e86e04a5 /src/gui/folderman.cpp
parenta8a05ec18ae5487eeb94f3e4923e80722171c88b (diff)
Fix crash #8916
When a folder is removed we remove all associated items from the protocol widgets. The folder however coninues to announce new items slotItemCompleted. If one of the items is accessed after the folder object is deleted we got a crash. Fixes: #8916
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r--src/gui/folderman.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp
index 9bdc5725a..a94cc1b09 100644
--- a/src/gui/folderman.cpp
+++ b/src/gui/folderman.cpp
@@ -174,6 +174,8 @@ void FolderMan::unloadFolder(Folder *f)
_socketApi.data(), &SocketApi::broadcastStatusPushMessage);
disconnect(f, &Folder::watchedFileChangedExternally,
&f->syncEngine().syncFileStatusTracker(), &SyncFileStatusTracker::slotPathTouched);
+
+ f->syncEngine().disconnect(f);
}
void FolderMan::unloadAndDeleteAllFolders()