This commit is contained in:
twinaphex 2017-11-16 14:23:03 +01:00
parent c0d8a2f093
commit 40bb1da981

View File

@ -42,7 +42,9 @@ static int action_select_default(const char *path, const char *label, unsigned t
menu_entry_init(&entry);
menu_entry_get(&entry, 0, idx, NULL, false);
cbs = selection_buf ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, idx) : NULL;
if (selection_buf)
cbs = (menu_file_list_cbs_t*)
file_list_get_actiondata_at_offset(selection_buf, idx);
if (!cbs)
{
@ -76,7 +78,7 @@ static int action_select_default(const char *path, const char *label, unsigned t
if (action == MENU_ACTION_NOOP)
{
if (cbs->action_ok)
action = MENU_ACTION_OK;
action = MENU_ACTION_OK;
else
{
if (cbs->action_start)