Revert "Fix for #7130, take two"

This reverts commit 8f40baf7ff.
This commit is contained in:
twinaphex 2018-09-24 20:06:07 +02:00
parent a945b7b985
commit 919a23c442

View File

@ -565,15 +565,10 @@ static int menu_input_pointer_post_iterate(
void menu_input_post_iterate(int *ret, unsigned action)
{
menu_entry_t entry;
size_t selection;
menu_file_list_cbs_t *cbs;
settings_t *settings = config_get_ptr();
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
menu_input_t *menu_input = menu_input_get_ptr();
if (menu_input != NULL && menu_input->pointer.pressed[0])
menu_navigation_set_selection(menu_input->pointer.ptr);
selection = menu_navigation_get_selection();
cbs = selection_buf ?
size_t selection = menu_navigation_get_selection();
menu_file_list_cbs_t *cbs = selection_buf ?
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
menu_entry_init(&entry);