From df1c7d22f33535c878110fb63df3329e64cf764b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 5 Jun 2015 09:58:39 +0200 Subject: [PATCH] (menu_entries_cbs_ok.c) Cut down on more strcmps --- menu/menu_entries_cbs_ok.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/menu_entries_cbs_ok.c b/menu/menu_entries_cbs_ok.c index 2d6ab56f61..39b4a4d161 100644 --- a/menu/menu_entries_cbs_ok.c +++ b/menu/menu_entries_cbs_ok.c @@ -1525,9 +1525,9 @@ void menu_entries_cbs_init_bind_ok(menu_file_list_cbs_t *cbs, !strcmp(label, "detect_core_list") ) cbs->action_ok = action_ok_push_content_list; - else if (!strcmp(label, "history_list") || - !strcmp(label, "cursor_manager_list") || - !strcmp(label, "database_manager_list") || + else if ((hash == MENU_LABEL_HISTORY_LIST) || + (hash == MENU_LABEL_CURSOR_MANAGER_LIST) || + (hash == MENU_LABEL_DATABASE_MANAGER_LIST) || (setting && setting->browser_selection_type == ST_DIR) ) cbs->action_ok = action_ok_push_generic_list;