emit itemCompleted(item, ErrorCategory::GenericError);
return;
}
- } else {
- if (!FileSystem::setModTime(filePath, item->_modtime)) {
- item->_instruction = CSYNC_INSTRUCTION_ERROR;
- item->_errorString = tr("Could not update file metadata: %1").arg(filePath);
- emit itemCompleted(item, ErrorCategory::GenericError);
- return;
- }
+ } else if (!FileSystem::setModTime(filePath, item->_modtime)) {
+ item->_instruction = CSYNC_INSTRUCTION_ERROR;
+ item->_errorString = tr("Could not update file metadata: %1").arg(filePath);
+ emit itemCompleted(item, ErrorCategory::GenericError);
+ return;
}
// Updating the db happens on success