Sometimes going up one directory didn't highlight the directory name.

This commit is contained in:
Stephen Anthony 2019-07-19 15:32:33 -02:30
parent 898f00dff0
commit 39feee8c0a
1 changed files with 1 additions and 2 deletions

View File

@ -80,10 +80,9 @@ void FileListWidget::selectParent()
// Make sure 'selected' has the proper directory naming scheme // Make sure 'selected' has the proper directory naming scheme
string select = _node.getName(); string select = _node.getName();
if(select.back() == '/' || select.back() == '\\') if(select.back() == '/' || select.back() == '\\')
{
select.pop_back(); select.pop_back();
if(!BSPF::startsWithIgnoreCase(select, " ["))
select = " [" + select + "]"; select = " [" + select + "]";
}
setLocation(_node.getParent(), select); setLocation(_node.getParent(), select);
} }