]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
remove wrong code
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 1 Feb 2023 18:23:37 +0000 (19:23 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 28 Jun 2023 09:21:50 +0000 (11:21 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/propagatedownload.cpp

index dfff585f2d39ad4f06a719bf0d9bdc7fd5de27b4..2edd3c4c5ba8250440999565e3a2cd78b3d34af3 100644 (file)
@@ -1153,13 +1153,6 @@ void PropagateDownloadFile::downloadFinished()
     ASSERT(!_tmpFile.isOpen());
     const auto filename = propagator()->fullLocalPath(_item->_file);
 
-    // In case of file name clash, report an error
-    // This can happen if another parallel download saved a clashing file.
-    if (propagator()->localFileNameClash(_item->_file)) {
-        done(SyncFileItem::FileNameClash, tr("File %1 cannot be saved because of a local file name clash!").arg(QDir::toNativeSeparators(_item->_file)), ErrorCategory::GenericError);
-        return;
-    }
-
     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)), ErrorCategory::GenericError);