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:
Stephen Anthony 2020-01-25 20:24:23 -03:30
parent 499517976f
commit 380c28c94e
1 changed files with 7 additions and 2 deletions

View File

@ -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;