From b5fdbefb0e7aabfc47ce1366b46912fbc41aac9b Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Tue, 20 Oct 2020 16:51:38 +0200 Subject: [PATCH] Make sure jobs don't outlive ClientSideEncryption Signed-off-by: Kevin Ottens --- src/libsync/clientsideencryption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2