Log on failed path copy
This commit is contained in:
parent
3e43429f13
commit
c54f7b9245
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue