Discovery: Parse etag to be consistent with RequestEtagJob

This avoids unnecessary sync runs.

For #7345
This commit is contained in:
Christian Kamm 2019-07-26 10:00:19 +02:00 committed by Kevin Ottens
parent 38c466efbf
commit 61972c35a8
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -355,7 +355,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
//This works in concerto with the RequestEtagJob and the Folder object to check if the remote folder changed.
if (map.contains("getetag")) {
if (_firstEtag.isEmpty()) {
_firstEtag = map.value("getetag"); // for directory itself
_firstEtag = parseEtag(map.value("getetag").toUtf8()); // for directory itself
}
}
}