mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
fix bug (#5133)
This commit is contained in:
parent
2d86938375
commit
d1e0f9dfc5
1 changed files with 5 additions and 1 deletions
|
|
@ -412,7 +412,11 @@ void SettingsCache::setPicsPath(const QString &_picsPath)
|
||||||
picsPath = _picsPath;
|
picsPath = _picsPath;
|
||||||
settings->setValue("paths/pics", picsPath);
|
settings->setValue("paths/pics", picsPath);
|
||||||
// get a new value for customPicsPath, currently derived from picsPath
|
// get a new value for customPicsPath, currently derived from picsPath
|
||||||
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "CUSTOM/");
|
if (picsPath.endsWith("/")) {
|
||||||
|
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "CUSTOM/");
|
||||||
|
} else {
|
||||||
|
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
|
||||||
|
}
|
||||||
emit picsPathChanged();
|
emit picsPathChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue