summaryrefslogtreecommitdiff
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-12-16 08:18:40 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-12-16 08:18:40 +0000
commitb9aabcb1a40aa2705d720e332bef7c390fb0587a (patch)
tree95553d9f7ffb5d6982a65866264728b35082ced0 /apps/bookmark.c
parentd24ebd16131dcf580f61947acbdc4c206e9ead0b (diff)
downloadrockbox-b9aabcb1a40aa2705d720e332bef7c390fb0587a.tar.gz
rockbox-b9aabcb1a40aa2705d720e332bef7c390fb0587a.zip
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
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index 7d29c4f8f9..1d8e499bce 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -763,9 +763,25 @@ static char* select_bookmark(const char* bookmark_file_name, bool show_dont_resu
763 763
764 case ACTION_BMS_DELETE: 764 case ACTION_BMS_DELETE:
765 if (item >= 0) 765 if (item >= 0)
766 { 766 {
767 delete_bookmark(bookmark_file_name, item); 767 const char *lines[]={
768 bookmarks->reload = true; 768 ID2P(LANG_REALLY_DELETE),
769 bookmark_file_name
770 };
771 const char *yes_lines[]={
772 ID2P(LANG_DELETING),
773 bookmark_file_name
774 };
775
776 const struct text_message message={lines, 2};
777 const struct text_message yes_message={yes_lines, 2};
778
779 if(gui_syncyesno_run(&message, &yes_message, NULL)==YESNO_YES)
780 {
781 splash(0, str(LANG_DELETING));
782 delete_bookmark(bookmark_file_name, item);
783 bookmarks->reload = true;
784 }
769 refresh = true; 785 refresh = true;
770 } 786 }
771 break; 787 break;