Fix for #7130, take two
This commit is contained in:
parent
06d7f717d4
commit
8f40baf7ff
|
@ -565,10 +565,15 @@ static int menu_input_pointer_post_iterate(
|
||||||
void menu_input_post_iterate(int *ret, unsigned action)
|
void menu_input_post_iterate(int *ret, unsigned action)
|
||||||
{
|
{
|
||||||
menu_entry_t entry;
|
menu_entry_t entry;
|
||||||
|
size_t selection;
|
||||||
|
menu_file_list_cbs_t *cbs;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
||||||
size_t selection = menu_navigation_get_selection();
|
menu_input_t *menu_input = menu_input_get_ptr();
|
||||||
menu_file_list_cbs_t *cbs = selection_buf ?
|
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 ?
|
||||||
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
|
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
|
||||||
|
|
||||||
menu_entry_init(&entry);
|
menu_entry_init(&entry);
|
||||||
|
|
Loading…
Reference in New Issue