From: Matthieu Gallien Date: Mon, 28 Nov 2022 16:16:45 +0000 (+0100) Subject: a case clash error is a case clash error X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~102^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=172505534622652c27c0400a9a555ec7866d9495;p=nextcloud-desktop.git a case clash error is a case clash error Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/propagatorjobs.cpp b/src/libsync/propagatorjobs.cpp index a04dc92c4..531bdd7fe 100644 --- a/src/libsync/propagatorjobs.cpp +++ b/src/libsync/propagatorjobs.cpp @@ -102,7 +102,7 @@ void PropagateLocalRemove::start() qCInfo(lcPropagateLocalRemove) << "Going to delete:" << filename; if (propagator()->localFileNameClash(_item->_file)) { - done(SyncFileItem::NormalError, tr("Could not remove %1 because of a local file name clash").arg(QDir::toNativeSeparators(filename))); + done(SyncFileItem::FileNameClash, tr("Could not remove %1 because of a local file name clash").arg(QDir::toNativeSeparators(filename))); return; } @@ -250,7 +250,7 @@ void PropagateLocalRename::start() // Fixme: the file that is the reason for the clash could be named here, // it would have to come out the localFileNameClash function - done(SyncFileItem::NormalError, + done(SyncFileItem::FileNameClash, tr("File %1 cannot be renamed to %2 because of a local file name clash") .arg(QDir::toNativeSeparators(_item->_file), QDir::toNativeSeparators(_item->_renameTarget))); return;