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

Mnikolenko Productengine 2016-07-05 18:23:14 +03:00
parent 5bcffc8f86
commit cd4a2bad06
1 changed files with 1 additions and 2 deletions

View File

@ -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)