Custom image file path corrected (#3119)

This commit is contained in:
David Szabo 2018-02-26 05:22:41 +01:00 committed by Zach H
parent 7cfbf114b7
commit 941a06e107

View file

@ -11,7 +11,7 @@
QString SettingsCache::getDataPath()
{
if (isPortableBuild)
return qApp->applicationDirPath() + "/data/";
return qApp->applicationDirPath() + "/data";
else
return QStandardPaths::writableLocation(QStandardPaths::DataLocation);
}
@ -183,7 +183,11 @@ SettingsCache::SettingsCache()
replaysPath = getSafeConfigPath("paths/replays", dataPath + "/replays/");
picsPath = getSafeConfigPath("paths/pics", dataPath + "/pics/");
// this has never been exposed as an user-configurable setting
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
if (picsPath.endsWith("/")) {
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "CUSTOM/");
} else {
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
}
// this has never been exposed as an user-configurable setting
customCardDatabasePath = getSafeConfigPath("paths/customsets", dataPath + "/customsets/");