summaryrefslogtreecommitdiffstats
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-05-01 10:13:12 +0000
committerNils Wallménius <nils@rockbox.org>2008-05-01 10:13:12 +0000
commitdabcb81e1380aeab8e50a64efcc1dc4a59145094 (patch)
tree6d7f5067169739faf7b4bb874386542f57abe768 /apps/tagtree.c
parente02d031f4ce5da08770b784f17795e5f490d3481 (diff)
downloadrockbox-dabcb81e1380aeab8e50a64efcc1dc4a59145094.tar.gz
rockbox-dabcb81e1380aeab8e50a64efcc1dc4a59145094.tar.bz2
rockbox-dabcb81e1380aeab8e50a64efcc1dc4a59145094.zip
Introduce a small helper function that asks the user if the dynamic playlist should be erased to increase code re-use
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17295 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 627cad3817..3562a48a5a 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1497,16 +1497,8 @@ int tagtree_enter(struct tree_context* c)
c->dirlevel--;
/* about to create a new current playlist...
allow user to cancel the operation */
- if (global_settings.warnon_erase_dynplaylist &&
- !global_settings.party_mode &&
- playlist_modified(NULL))
- {
- static const char *lines[]={ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)};
- static const struct text_message message={lines, 1};
-
- if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES)
- break;
- }
+ if (!warn_on_pl_erase())
+ break;
if (tagtree_play_folder(c) >= 0)
rc = 2;