Don't show parent folders in the error list #3796

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.
This commit is contained in:
Jocelyn Turcotte 2016-01-06 12:35:36 +01:00
Родитель a63ebe0904
Коммит 2f355c473a
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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);
}