aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud')
-rw-r--r--backends/cloud/savessyncrequest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/cloud/savessyncrequest.cpp b/backends/cloud/savessyncrequest.cpp
index 6e0efc55c1..439642b45c 100644
--- a/backends/cloud/savessyncrequest.cpp
+++ b/backends/cloud/savessyncrequest.cpp
@@ -159,7 +159,11 @@ void SavesSyncRequest::directoryListedCallback(Storage::ListDirectoryResponse re
_totalFilesToHandle = _filesToDownload.size() + _filesToUpload.size();
//start downloading files
- downloadNextFile();
+ if (!_filesToDownload.empty()) {
+ downloadNextFile();
+ } else {
+ uploadNextFile();
+ }
}
void SavesSyncRequest::directoryListedErrorCallback(Networking::ErrorResponse error) {