mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
Merge pull request #2 from Daenyth/feature-cpack
Check for path creation failure
This commit is contained in:
commit
36e4b84ba7
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())
|
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)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue