projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a04de
)
FolderStatusModel: reset also if a folder was renamed #4011
author
Olivier Goffart
<ogoffart@woboq.com>
Tue, 27 Oct 2015 12:51:56 +0000
(13:51 +0100)
committer
Olivier Goffart
<ogoffart@woboq.com>
Tue, 27 Oct 2015 12:51:56 +0000
(13:51 +0100)
src/gui/folderstatusmodel.cpp
patch
|
blob
|
history
diff --git
a/src/gui/folderstatusmodel.cpp
b/src/gui/folderstatusmodel.cpp
index f5e6cc9d21ceef669470d0d4d3ba5a5e4a0c7bc9..0f2c96c0b225db16f341e592cb7ff02a53abbd0b 100644
(file)
--- 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));