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
diff options
context:
space:
mode:
Diffstat (limited to 'src/mirall')
-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());
}