mirror of https://github.com/stella-emu/stella.git
Make selecting the previous directory by shortcut and clicking "[..]" follow the same code path.
This allows selection of previous selected item to work correctly.
This commit is contained in:
parent
499517976f
commit
380c28c94e
|
@ -169,8 +169,13 @@ void FileListWidget::handleCommand(CommandSender* sender, int cmd, int data, int
|
|||
_selected = data;
|
||||
if(selected().isDirectory())
|
||||
{
|
||||
cmd = ItemChanged;
|
||||
selectDirectory();
|
||||
if(selected().getName() == " [..]")
|
||||
selectParent();
|
||||
else
|
||||
{
|
||||
cmd = ItemChanged;
|
||||
selectDirectory();
|
||||
}
|
||||
}
|
||||
else
|
||||
cmd = ItemActivated;
|
||||
|
|
Loading…
Reference in New Issue