Merge pull request #2 from Daenyth/feature-cpack

Check for path creation failure
This commit is contained in:
ctrlaltca 2014-06-23 08:43:07 +02:00
commit 36e4b84ba7

View file

@ -269,7 +269,10 @@ void SettingsCache::copyPath(const QString &src, const QString &dst)
if (!tmpDir.exists())
{
tmpDir.setPath(QDir::rootPath());
tmpDir.mkdir(dst);
if (!tmpDir.mkdir(dst) && !tmpDir.exists()) {
// TODO: this is probably not good.
qDebug() << "copyPath(): Failed to create dir: " << dst;
}
}
foreach (QString d, dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) {