From: Kevin Ottens Date: Tue, 20 Oct 2020 14:51:38 +0000 (+0200) Subject: Make sure jobs don't outlive ClientSideEncryption X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~99^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b5fdbefb0e7aabfc47ce1366b46912fbc41aac9b;p=nextcloud-desktop.git Make sure jobs don't outlive ClientSideEncryption Signed-off-by: Kevin Ottens --- diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index a131206f2..340416a89 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1243,7 +1243,7 @@ void ClientSideEncryption::getPublicKeyFromServer() void ClientSideEncryption::scheduleFolderEncryptedStatusJob(const QString &path) { - auto getEncryptedStatus = new GetFolderEncryptStatusJob(_account, path); + auto getEncryptedStatus = new GetFolderEncryptStatusJob(_account, path, this); connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusReceived, this, &ClientSideEncryption::folderEncryptedStatusFetched); connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusError,