FolderStatusModel: reset also if a folder was renamed #4011

This commit is contained in:
Olivier Goffart 2015-10-27 13:51:56 +01:00
Родитель 84a04de7be
Коммит 26e1223f9a
1 изменённых файлов: 2 добавлений и 1 удалений

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

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