mirror of https://github.com/stella-emu/stella.git
Sometimes going up one directory didn't highlight the directory name.
This commit is contained in:
parent
898f00dff0
commit
39feee8c0a
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue