1
1

Don't select first item when browsing back using parent dir

The parent directory reference is the same for all directories, so we'll
have to make sure to reset its FF_BSEL flag when opening another
directory.
Этот коммит содержится в:
Yorhel 2010-04-27 12:24:42 +02:00
родитель 5db9c2aea1
Коммит a35f998168

Просмотреть файл

@ -193,6 +193,7 @@ void dirlist_open(struct dir *d) {
head_real = head = dirlist_sort(head);
/* set the reference to the parent dir */
dirlist_parent_alloc.flags &= ~FF_BSEL;
if(head->parent->parent) {
dirlist_parent = &dirlist_parent_alloc;
dirlist_parent->name = "..";