[Pkg-owncloud-commits] [owncloud-client] 153/484: FolderStatusModel: reset also if a folder was renamed #4011

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:32 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 26e1223f9a198e9a78ccfab8475548c3051cc79c
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Oct 27 13:51:56 2015 +0100

    FolderStatusModel:  reset also if a folder was renamed  #4011
---
 src/gui/folderstatusmodel.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index f5e6cc9..0f2c96c 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -917,7 +917,8 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f)
     if (state == SyncResult::Success) {
         foreach (const SyncFileItemPtr &i, f->syncResult().syncFileItemVector()) {
             if (i->_isDirectory && (i->_instruction == CSYNC_INSTRUCTION_NEW
-                    || i->_instruction == CSYNC_INSTRUCTION_REMOVE)) {
+                    || i->_instruction == CSYNC_INSTRUCTION_REMOVE
+                    || i->_instruction == CSYNC_INSTRUCTION_RENAME)) {
                 // There is a new or a removed folder. reset all data
                 auto & info = _folders[folderIndex];
                 info.resetSubs(this, index(folderIndex));

-- 
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