From f1b2417967bb45ae3aafe37b096a05aacfebef6d Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 26 May 2014 17:53:26 +0200 Subject: [PATCH] Add check for case clash for legacy propagator download. --- src/mirall/propagator_legacy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mirall/propagator_legacy.cpp b/src/mirall/propagator_legacy.cpp index 507b0a1e2..6d3ffd5ce 100644 --- a/src/mirall/propagator_legacy.cpp +++ b/src/mirall/propagator_legacy.cpp @@ -444,6 +444,13 @@ void PropagateDownloadFileLegacy::start() if (_propagator->_abortRequested.fetchAndAddRelaxed(0)) return; + // do a case clash check. + if( _propagator->localFileNameClash(_item._file) ) { + done( SyncFileItem::NormalError, tr("File %1 can not be downloaded because of a local file name clash!") + .arg(QDir::toNativeSeparators(_item._file)) ); + return; + } + emit progress(_item, 0); QString tmpFileName;