From: Christian Kamm Date: Fri, 26 Jul 2019 08:00:19 +0000 (+0200) Subject: Discovery: Parse etag to be consistent with RequestEtagJob X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~213 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=61972c35a8be6eccddb67787dcbaba7e98599bc2;p=nextcloud-desktop.git Discovery: Parse etag to be consistent with RequestEtagJob This avoids unnecessary sync runs. For #7345 --- diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index e137316a1..233cf16a4 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -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 } } }