mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Make sure jobs don't outlive ClientSideEncryption
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
399b97442e
commit
b5fdbefb0e
1 changed files with 1 additions and 1 deletions
|
@ -1243,7 +1243,7 @@ void ClientSideEncryption::getPublicKeyFromServer()
|
||||||
|
|
||||||
void ClientSideEncryption::scheduleFolderEncryptedStatusJob(const QString &path)
|
void ClientSideEncryption::scheduleFolderEncryptedStatusJob(const QString &path)
|
||||||
{
|
{
|
||||||
auto getEncryptedStatus = new GetFolderEncryptStatusJob(_account, path);
|
auto getEncryptedStatus = new GetFolderEncryptStatusJob(_account, path, this);
|
||||||
connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusReceived,
|
connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusReceived,
|
||||||
this, &ClientSideEncryption::folderEncryptedStatusFetched);
|
this, &ClientSideEncryption::folderEncryptedStatusFetched);
|
||||||
connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusError,
|
connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusError,
|
||||||
|
|
Loading…
Reference in a new issue