Fix conflicting variable

This commit is contained in:
Jonas Kvinge 2019-09-09 18:17:56 +02:00
parent c5b78dde04
commit f67fb53308
1 changed files with 5 additions and 4 deletions

View File

@ -113,15 +113,16 @@ bool AfcTransfer::CopyDirToDevice(iMobileDeviceConnection *c, const QString &pat
c->MkDir(path); c->MkDir(path);
} }
for (const QString &filename : dir.entryList(QDir::Files | QDir::NoDotAndDotDot)) { for (const QString &i : dir.entryList(QDir::Files | QDir::NoDotAndDotDot)) {
if (!CopyFileToDevice(c, path + "/" + filename)) if (!CopyFileToDevice(c, path + "/" + i))
return false; return false;
} }
for (const QString &dir : dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) { for (const QString &i : dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) {
if (!CopyDirToDevice(c, path + "/" + dir)) if (!CopyDirToDevice(c, path + "/" + i))
return false; return false;
} }
return true; return true;
} }