Fixed a small bug that prevented creating the properly named local

directory.
This commit is contained in:
Juan Carlos Cornejo 2011-11-12 01:08:20 -05:00 committed by Klaas Freitag
parent a0b3249419
commit f481c02876

View file

@ -698,8 +698,10 @@ void OwnCloudSync::syncFiles()
// Make local dirs // Make local dirs
for(int i = 0; i < localDirs.size(); i++ ) { for(int i = 0; i < localDirs.size(); i++ ) {
QDir dir; QDir dir;
if (!dir.mkdir(mLocalDirectory+localDirs[i]) ) { if (!dir.mkdir(mLocalDirectory+
qDebug() << "Could not make directory "+mLocalDirectory+localDirs[i]; stringRemoveBasePath(localDirs[i],mRemoteDirectory)) ) {
qDebug() << "Could not make directory "+mLocalDirectory+
stringRemoveBasePath(localDirs[i],mRemoteDirectory);
} else { } else {
emit toLog(tr("Created local directory: %1").arg(localDirs[i])); emit toLog(tr("Created local directory: %1").arg(localDirs[i]));
//qDebug() << "Made directory "+mLocalDirectory+localDirs[i]; //qDebug() << "Made directory "+mLocalDirectory+localDirs[i];