diff options
-rw-r--r-- | apps/tagtree.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index 4061e9d8d7..bf1b6a1f0b 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "buffer.h" | 40 | #include "buffer.h" |
41 | #include "atoi.h" | 41 | #include "atoi.h" |
42 | #include "playback.h" | 42 | #include "playback.h" |
43 | #include "yesno.h" | ||
43 | 44 | ||
44 | #define FILE_SEARCH_INSTRUCTIONS ROCKBOX_DIR "/tagnavi.config" | 45 | #define FILE_SEARCH_INSTRUCTIONS ROCKBOX_DIR "/tagnavi.config" |
45 | 46 | ||
@@ -883,6 +884,19 @@ int tagtree_enter(struct tree_context* c) | |||
883 | if (newextra == playtrack) | 884 | if (newextra == playtrack) |
884 | { | 885 | { |
885 | c->dirlevel--; | 886 | c->dirlevel--; |
887 | /* about to create a new current playlist... | ||
888 | allow user to cancel the operation */ | ||
889 | if (global_settings.warnon_erase_dynplaylist && | ||
890 | !global_settings.party_mode && | ||
891 | playlist_modified(NULL)) | ||
892 | { | ||
893 | char *lines[]={str(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; | ||
894 | struct text_message message={lines, 1}; | ||
895 | |||
896 | if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES) | ||
897 | break; | ||
898 | } | ||
899 | |||
886 | if (tagtree_play_folder(c) >= 0) | 900 | if (tagtree_play_folder(c) >= 0) |
887 | rc = 2; | 901 | rc = 2; |
888 | break; | 902 | break; |