fix for issue with profiles not loading into options from user folder. the issue was that we we're "removing a trailing "/"" even if there was no trailing slash. added a check for "/" before we chop the last letter of the directory :)
This commit is contained in:
@@ -414,7 +414,9 @@ OptionDirectory::OptionDirectory(string root, int id, string displayValue, strin
|
|||||||
|
|
||||||
for (size_t i = 0; i < subfolders.size(); ++i)
|
for (size_t i = 0; i < subfolders.size(); ++i)
|
||||||
{
|
{
|
||||||
string subfolder = subfolders[i].substr(0, subfolders[i].length() - 1); //remove trailing "/"
|
string subfolder = subfolders[i].substr(0, subfolders[i].length());
|
||||||
|
if(subfolders[i].find("/") == subfolders[i].length())
|
||||||
|
subfolder = subfolders[i].substr(0, subfolders[i].length() - 1); //remove trailing "/"
|
||||||
vector<string> path;
|
vector<string> path;
|
||||||
path.push_back(root);
|
path.push_back(root);
|
||||||
path.push_back(subfolder);
|
path.push_back(subfolder);
|
||||||
|
|||||||
Reference in New Issue
Block a user