From c54f7b9245bf86c4961517dea6b0c75dafa77ede Mon Sep 17 00:00:00 2001 From: Daenyth Date: Sun, 22 Jun 2014 20:14:22 -0400 Subject: [PATCH] Log on failed path copy --- cockatrice/src/settingscache.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/settingscache.cpp b/cockatrice/src/settingscache.cpp index ee4fc635..ccd65845 100644 --- a/cockatrice/src/settingscache.cpp +++ b/cockatrice/src/settingscache.cpp @@ -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)) {