forked from len0rd/rockbox
Fix FS#9198 - make the delete bookmark option confirm the action
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24021 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d24ebd1613
commit
b9aabcb1a4
1 changed files with 19 additions and 3 deletions
|
|
@ -763,9 +763,25 @@ static char* select_bookmark(const char* bookmark_file_name, bool show_dont_resu
|
|||
|
||||
case ACTION_BMS_DELETE:
|
||||
if (item >= 0)
|
||||
{
|
||||
delete_bookmark(bookmark_file_name, item);
|
||||
bookmarks->reload = true;
|
||||
{
|
||||
const char *lines[]={
|
||||
ID2P(LANG_REALLY_DELETE),
|
||||
bookmark_file_name
|
||||
};
|
||||
const char *yes_lines[]={
|
||||
ID2P(LANG_DELETING),
|
||||
bookmark_file_name
|
||||
};
|
||||
|
||||
const struct text_message message={lines, 2};
|
||||
const struct text_message yes_message={yes_lines, 2};
|
||||
|
||||
if(gui_syncyesno_run(&message, &yes_message, NULL)==YESNO_YES)
|
||||
{
|
||||
splash(0, str(LANG_DELETING));
|
||||
delete_bookmark(bookmark_file_name, item);
|
||||
bookmarks->reload = true;
|
||||
}
|
||||
refresh = true;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue