Commit 077d9f27 authored by Peng Liu's avatar Peng Liu
Browse files

Checks if CUSTOM folder was successfully created. If not, prints qDebug...

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.
parent ffed0e00
...@@ -158,7 +158,9 @@ int main(int argc, char *argv[]) ...@@ -158,7 +158,9 @@ int main(int argc, char *argv[])
QDir().mkpath(dataDir + "/pics"); QDir().mkpath(dataDir + "/pics");
settingsCache->setPicsPath(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 #ifdef Q_OS_MAC
if(settingsCache->getHandBgPath().isEmpty() && if(settingsCache->getHandBgPath().isEmpty() &&
settingsCache->getStackBgPath().isEmpty() && settingsCache->getStackBgPath().isEmpty() &&
......
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