(menu_entries_cbs_ok.c) Cut down on more strcmps

This commit is contained in:
twinaphex 2015-06-05 09:58:39 +02:00
parent 06918c0749
commit df1c7d22f3

View File

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