diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index fedf2eb46f..a0de1ea144 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1205,7 +1205,7 @@ bool GetFolderEncryptStatus::finished() } if (!currFile.isEmpty() && currEncryptedStatus != -1) { - folderStatus.insert(currFile, currEncryptedStatus); + folderStatus.insert(currFile.remove("/remote.php/webdav/"), currEncryptedStatus); currFile.clear(); currEncryptedStatus = -1; }