mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-13 17:38:32 +03:00
[CSE] Don't query for files on GetFolderEncryptStatusJob
The request for folders whas also replying for files.
This commit is contained in:
parent
7fe4dd2163
commit
19120fde9f
1 changed files with 4 additions and 1 deletions
|
@ -1540,7 +1540,10 @@ bool GetFolderEncryptStatusJob::finished()
|
|||
auto type = reader.readNext();
|
||||
if (type == QXmlStreamReader::StartElement) {
|
||||
if (reader.name() == QLatin1String("href")) {
|
||||
// If the current file is not a folder, ignore it.
|
||||
currFile = reader.readElementText(QXmlStreamReader::SkipChildElements);
|
||||
if (!currFile.endsWith('/'))
|
||||
continue;
|
||||
}
|
||||
if (reader.name() == QLatin1String("is-encrypted")) {
|
||||
currEncryptedStatus = (bool) reader.readElementText(QXmlStreamReader::SkipChildElements).toInt();
|
||||
|
|
Loading…
Reference in a new issue