Skip to content
Snippets Groups Projects
Commit 85fd2dc8 authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

MAINT-6550 Graphic preset name including "\" causes preset to be unusable &...

MAINT-6550 Graphic preset name including "\" causes preset to be unusable & preset cannot be deleted.
parent c2320fa0
No related branches found
No related tags found
No related merge requests found
...@@ -104,8 +104,7 @@ void LLPresetsManager::loadPresetNamesFromDir(const std::string& dir, preset_nam ...@@ -104,8 +104,7 @@ void LLPresetsManager::loadPresetNamesFromDir(const std::string& dir, preset_nam
if (found) if (found)
{ {
std::string path = gDirUtilp->add(dir, file); std::string path = gDirUtilp->add(dir, file);
std::string name = gDirUtilp->getBaseFileName(LLURI::unescape(path), /*strip_exten = */ true); std::string name = LLURI::unescape(gDirUtilp->getBaseFileName(path, /*strip_exten = */ true));
LL_DEBUGS() << " Found preset '" << name << "'" << LL_ENDL; LL_DEBUGS() << " Found preset '" << name << "'" << LL_ENDL;
if (PRESETS_DEFAULT != name) if (PRESETS_DEFAULT != name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment