From ed19107161c2ab027bcca89b60ebb435c053534d Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 22 May 2014 10:05:57 +0200 Subject: [PATCH] Remove useless check. QFile::exists() is CI on CI filesystems Tested on OS X and Windows --- src/mirall/propagatorjobs.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mirall/propagatorjobs.cpp b/src/mirall/propagatorjobs.cpp index c6efed393b..1019538a2b 100644 --- a/src/mirall/propagatorjobs.cpp +++ b/src/mirall/propagatorjobs.cpp @@ -104,10 +104,8 @@ void PropagateLocalMkdir::start() if (_propagator->_abortRequested.fetchAndAddRelaxed(0)) return; - QString newDirName( _propagator->_localDir + _item._file ); - QDir newDir( newDirName ); - QString sysDirName = newDir.dirName(); - if( newDir.exists() && ! _item._file.endsWith(sysDirName, Qt::CaseSensitive)) { + QDir newDir( _propagator->_localDir + _item._file ); + if(newDir.exists()) { qDebug() << "WARN: new directory to create locally already exists!"; done( SyncFileItem::NormalError, tr("Attention, possible case sensitivity clash with %1").arg(newDirName) ); return;