From 76482bcffef31b2d5125b2ad564acce423712f3c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 11 Mar 2013 06:05:01 +0100 Subject: [PATCH] (RGUI) No longer check for '..' and '.' - filtered out by dir_list_new now --- frontend/menu/rgui.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index 86a76a0bfc..16dc287cca 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -1380,16 +1380,8 @@ int rgui_iterate(rgui_handle_t *rgui, rgui_action_t action) char cat_path[PATH_MAX]; snprintf(cat_path, sizeof(cat_path), "%s/%s", dir, path); - if (strcmp(path, "..") == 0) - { - rgui->selection_ptr = directory_ptr; - rgui_list_pop(rgui->menu_stack); - } - else if (strcmp(path, ".") != 0) - { - rgui_list_push(rgui->menu_stack, cat_path, RGUI_FILE_DIRECTORY, rgui->selection_ptr); - rgui->selection_ptr = 0; - } + rgui_list_push(rgui->menu_stack, cat_path, RGUI_FILE_DIRECTORY, rgui->selection_ptr); + rgui->selection_ptr = 0; rgui->need_refresh = true; } else if (type == RGUI_FILE_DEVICE)