Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2014-11-21 18:47:15 +0300
committerMarkus Goetz <markus@woboq.com>2014-11-21 18:47:15 +0300
commit1c001ee13865ceb4598c989e5308d27aead74540 (patch)
tree84ef4b1aa82c5c042581973fd52103a90a6e9cd4 /src
parentfab82107bb22b4ef21f54e7b1df4c1e618d89982 (diff)
Folder: Don't blindly trigger sync on first EtagJob result
For #2352
Diffstat (limited to 'src')
-rw-r--r--src/mirall/folder.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mirall/folder.cpp b/src/mirall/folder.cpp
index 8b22144ea..e9678ba9f 100644
--- a/src/mirall/folder.cpp
+++ b/src/mirall/folder.cpp
@@ -321,7 +321,11 @@ void Folder::etagRetreived(const QString& etag)
// re-enable sync if it was disabled because network was down
FolderMan::instance()->setSyncEnabled(true);
- if (_lastEtag != etag) {
+ if (_lastEtag.isEmpty()) {
+ _lastEtag = etag;
+ // don't schedule a sync in this case, the _lastEtag is empty because it is the start
+ // and a sync was scheduled through other means anyway.
+ } else if (_lastEtag != etag) {
_lastEtag = etag;
emit scheduleToSync(alias());
}