From: Kevin Ottens Date: Tue, 20 Oct 2020 14:33:46 +0000 (+0200) Subject: Change the way we store the job result X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~99^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8e3ca717639566387371e951eba851a803da94ad;p=nextcloud-desktop.git Change the way we store the job result If there's more than one job we need to unite the maps not simply overwrite them. Signed-off-by: Kevin Ottens --- diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index f59051830..b19669552 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1244,6 +1244,8 @@ void ClientSideEncryption::getPublicKeyFromServer() void ClientSideEncryption::fetchFolderEncryptedStatus() { _refreshingEncryptionStatus = true; + _folder2encryptedStatus.clear(); + auto getEncryptedStatus = new GetFolderEncryptStatusJob(_account, QString()); connect(getEncryptedStatus, &GetFolderEncryptStatusJob::encryptStatusReceived, this, &ClientSideEncryption::folderEncryptedStatusFetched); @@ -1261,10 +1263,14 @@ void ClientSideEncryption::folderEncryptedStatusFetched(const QHash