Log on failed path copy

This commit is contained in:
Daenyth 2014-06-22 20:14:22 -04:00
parent 3e43429f13
commit c54f7b9245

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)) {