Custom image file path corrected (#3119)
This commit is contained in:
parent
7cfbf114b7
commit
941a06e107
1 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
QString SettingsCache::getDataPath()
|
QString SettingsCache::getDataPath()
|
||||||
{
|
{
|
||||||
if (isPortableBuild)
|
if (isPortableBuild)
|
||||||
return qApp->applicationDirPath() + "/data/";
|
return qApp->applicationDirPath() + "/data";
|
||||||
else
|
else
|
||||||
return QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
return QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,11 @@ SettingsCache::SettingsCache()
|
||||||
replaysPath = getSafeConfigPath("paths/replays", dataPath + "/replays/");
|
replaysPath = getSafeConfigPath("paths/replays", dataPath + "/replays/");
|
||||||
picsPath = getSafeConfigPath("paths/pics", dataPath + "/pics/");
|
picsPath = getSafeConfigPath("paths/pics", dataPath + "/pics/");
|
||||||
// this has never been exposed as an user-configurable setting
|
// this has never been exposed as an user-configurable setting
|
||||||
|
if (picsPath.endsWith("/")) {
|
||||||
|
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "CUSTOM/");
|
||||||
|
} else {
|
||||||
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
|
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
|
||||||
|
}
|
||||||
// this has never been exposed as an user-configurable setting
|
// this has never been exposed as an user-configurable setting
|
||||||
customCardDatabasePath = getSafeConfigPath("paths/customsets", dataPath + "/customsets/");
|
customCardDatabasePath = getSafeConfigPath("paths/customsets", dataPath + "/customsets/");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue