Ensure path always ends with path separator when moving to parent in GUI

This commit is contained in:
Jonathan G Rennison 2024-09-17 18:18:30 +01:00
parent 015d599213
commit d13b28c34c

View File

@ -166,6 +166,8 @@ bool FiosBrowseTo(const FiosItem *item)
s = _fios_path->find_last_of(PATHSEPCHAR);
if (s != std::string::npos) {
_fios_path->erase(s + 1); // go up a directory
} else {
*_fios_path += PATHSEP; // Add trailing path separator if there isn't one
}
break;
}