mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #4055 from nextcloud/bugfix/3.4.1RC1
Bugfix/3.4.1 rc1
This commit is contained in:
commit
881697d3d7
@ -1076,6 +1076,7 @@ void PropagateDownloadFile::downloadFinished()
|
||||
}
|
||||
|
||||
if (_item->_modtime <= 0) {
|
||||
FileSystem::remove(_tmpFile.fileName());
|
||||
done(SyncFileItem::NormalError, tr("File %1 has invalid modified time reported by server. Do not save it.").arg(QDir::toNativeSeparators(_item->_file)));
|
||||
return;
|
||||
}
|
||||
@ -1088,6 +1089,7 @@ void PropagateDownloadFile::downloadFinished()
|
||||
// Accuracy, and we really need the time from the file system. (#3103)
|
||||
_item->_modtime = FileSystem::getModTime(_tmpFile.fileName());
|
||||
if (_item->_modtime <= 0) {
|
||||
FileSystem::remove(_tmpFile.fileName());
|
||||
done(SyncFileItem::NormalError, tr("File %1 has invalid modified time reported by server. Do not save it.").arg(QDir::toNativeSeparators(_item->_file)));
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user