diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp index 8df1d18784..f01b35b260 100644 --- a/src/mirall/csyncthread.cpp +++ b/src/mirall/csyncthread.cpp @@ -534,8 +534,11 @@ void CSyncThread::startNextTransfer() _journal->setFileRecord(_directoriesToUpdate.pop()); } - if (!_lastDeleted.isEmpty() && item._file.startsWith(_lastDeleted) - && item._instruction == CSYNC_INSTRUCTION_REMOVE) { + if (!_lastDeleted.isEmpty() && + item._file.startsWith(_lastDeleted) ) { + if( item._instruction != CSYNC_INSTRUCTION_REMOVE ) { + qDebug() << "WRN: Child of a deleted directory has different instruction than delete."; + } // If the item's name starts with the name of the previously deleted directory, we // can assume this file was already destroyed by the previous recursive call. _journal->deleteFileRecord(item._file); diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp index 2c32470cc8..ffb3378cc8 100644 --- a/src/mirall/owncloudpropagator.cpp +++ b/src/mirall/owncloudpropagator.cpp @@ -600,8 +600,8 @@ csync_instructions_e OwncloudPropagator::downloadFile(const SyncFileItem &item, QFile::remove(newName); success = tmpFile.rename(newName); #endif + // unixoids if (!success) { - _errorString = tmpFile.errorString(); _status = SyncFileItem::NormalError; return CSYNC_INSTRUCTION_ERROR;