Exit the preset context menu correctly after editing/deleting preset

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12829 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-03-18 07:57:36 +00:00
parent 458648bd23
commit dd40a2e2fc

View file

@ -1120,7 +1120,7 @@ static int radio_edit_preset(void)
}
}
return true;
return 1;
}
static int radio_delete_preset(void)
@ -1147,7 +1147,7 @@ static int radio_delete_preset(void)
presets_loaded = false;
}
return true;
return 1;
}
static int load_preset_list(void)
@ -1223,10 +1223,10 @@ static int clear_preset_list(void)
return true;
}
MENUITEM_FUNCTION(radio_edit_preset_item, 0,
MENUITEM_FUNCTION(radio_edit_preset_item, MENU_FUNC_CHECK_RETVAL,
ID2P(LANG_FM_EDIT_PRESET),
radio_edit_preset, NULL, NULL, Icon_NOICON);
MENUITEM_FUNCTION(radio_delete_preset_item, 0,
MENUITEM_FUNCTION(radio_delete_preset_item, MENU_FUNC_CHECK_RETVAL,
ID2P(LANG_FM_DELETE_PRESET),
radio_delete_preset, NULL, NULL, Icon_NOICON);
int radio_preset_callback(int action, const struct menu_item_ex *this_item)