[Pkg-owncloud-commits] [owncloud-client] 427/498: SocketApi: Force fowarding an OK STATUS for all parent directories

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 48624fe033235afaaf514969d1155eff3ad15085
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date:   Fri Jul 31 21:20:58 2015 +0200

    SocketApi: Force fowarding an OK STATUS for all parent directories
    
    This fixes a few issues with the new FinderSync integration on OSX which
    can't easily clear its status cache when receiving an UPDATE_VIEW message
    except by unregistering the folder, but which causes flickering.
    
    This fix should also make the regeneration of the cache unnecessary on other
    platforms through possibly expensive RETRIEVE_FILE_STATUS commands.
---
 src/libsync/owncloudpropagator.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp
index 9876f35..01dde3a 100644
--- a/src/libsync/owncloudpropagator.cpp
+++ b/src/libsync/owncloudpropagator.cpp
@@ -605,6 +605,7 @@ void PropagateDirectory::slotSubJobFinished(SyncFileItem::Status status)
             (sender() == _firstJob.data() && status != SyncFileItem::Success && status != SyncFileItem::Restoration)) {
         abort();
         _state = Finished;
+        emit completed(*_item);
         emit finished(status);
         return;
     } else if (status == SyncFileItem::NormalError || status == SyncFileItem::SoftError) {
@@ -648,6 +649,7 @@ void PropagateDirectory::finalize()
         }
     }
     _state = Finished;
+    emit completed(*_item);
     emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list