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;
|
_selected = data;
|
||||||
if(selected().isDirectory())
|
if(selected().isDirectory())
|
||||||
{
|
{
|
||||||
cmd = ItemChanged;
|
if(selected().getName() == " [..]")
|
||||||
selectDirectory();
|
selectParent();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cmd = ItemChanged;
|
||||||
|
selectDirectory();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
cmd = ItemActivated;
|
cmd = ItemActivated;
|
||||||
|
|
Loading…
Reference in New Issue