MAINT-6550 Graphic preset name including "\" causes preset to be unusable & preset cannot be deleted.
parent
5bcffc8f86
commit
cd4a2bad06
|
|
@ -111,8 +111,7 @@ void LLPresetsManager::loadPresetNamesFromDir(const std::string& dir, preset_nam
|
|||
if (found)
|
||||
{
|
||||
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;
|
||||
|
||||
if (PRESETS_DEFAULT != name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue