keybox: fix issue when deleted all items.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22533 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e454a39852
commit
bd023385fb
1 changed files with 4 additions and 2 deletions
|
@ -172,6 +172,8 @@ static void delete_entry(int selected_item)
|
|||
entry2->next = NULL;
|
||||
|
||||
rb->gui_synclist_set_nb_items(&kb_list, --pw_list.num_entries);
|
||||
if(!pw_list.num_entries)
|
||||
init_ll();
|
||||
data_changed = true;
|
||||
}
|
||||
|
||||
|
@ -270,7 +272,7 @@ static void edit_pw(int selected_item)
|
|||
|
||||
static void context_menu(int selected_item)
|
||||
{
|
||||
int selection, result;
|
||||
int selection = 0, result;
|
||||
bool exit = false;
|
||||
|
||||
do {
|
||||
|
@ -612,7 +614,7 @@ static void reset(void)
|
|||
|
||||
static int main_menu(void)
|
||||
{
|
||||
int selection, result, ret;
|
||||
int selection = 0, result, ret;
|
||||
bool exit = false;
|
||||
|
||||
MENUITEM_STRINGLIST(menu, "Keybox", NULL,
|
||||
|
|
Loading…
Reference in a new issue