Don't show parent folders in the error list #3796
authorJocelyn Turcotte <jturcotte@woboq.com>
Wed, 6 Jan 2016 11:35:36 +0000 (12:35 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Wed, 6 Jan 2016 11:37:35 +0000 (12:37 +0100)
The error status of children should only be used for the etag logic.
The SocketApi uses a path matching system to do this and the UI should
report errors only for individual involved files/directories.

src/libsync/owncloudpropagator.cpp

index 4d31c42ff640b5b80c1df94ba6c0632b61e5b04f..ab0734dc09aa8f696f1ac1e5cce6b3faed3a79a4 100644 (file)
@@ -663,7 +663,10 @@ void PropagateDirectory::finalize()
         }
     }
     _state = Finished;
-    _item->_status = _hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError;
+    // Just to make sure that the SocketApi will know by looking in
+    // SyncEngine::_syncedItems that this folder is done synchronizing.
+    _item->_status = SyncFileItem::Success;
+
     emit itemCompleted(*_item, *this);
     emit finished(_item->_status);
 }