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:
Peng Liu
2014-07-31 22:42:13 -04:00
parent ffed0e00fe
commit 077d9f2745
+3 -1
View File
@@ -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() &&