Checks if CUSTOM folder was successfully created. If not, prints qDebug message and proceeds as normal except uses default card images instead of custom ones.
This commit is contained in:
parent
ffed0e00fe
commit
077d9f2745
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ int main(int argc, char *argv[])
|
|||
QDir().mkpath(dataDir + "/pics");
|
||||
settingsCache->setPicsPath(dataDir + "/pics");
|
||||
}
|
||||
|
||||
if (!QDir().mkpath(settingsCache->getPicsPath() + "/CUSTOM"))
|
||||
qDebug("Could not create " settingsCache->getPicsPath() + "/CUSTOM. Will fall back on default card images.");
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
if(settingsCache->getHandBgPath().isEmpty() &&
|
||||
settingsCache->getStackBgPath().isEmpty() &&
|
||||
|
|
Loading…
Reference in a new issue