Commit c54f7b92 authored by Daenyth's avatar Daenyth
Browse files

Log on failed path copy

parent 3e43429f
...@@ -269,7 +269,10 @@ void SettingsCache::copyPath(const QString &src, const QString &dst) ...@@ -269,7 +269,10 @@ void SettingsCache::copyPath(const QString &src, const QString &dst)
if (!tmpDir.exists()) if (!tmpDir.exists())
{ {
tmpDir.setPath(QDir::rootPath()); 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)) { foreach (QString d, dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment