Add check for case clash for legacy propagator download.

This commit is contained in:
Klaas Freitag 2014-05-26 17:53:26 +02:00
parent 181383e5f1
commit f1b2417967

View file

@ -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;