From dabcb81e1380aeab8e50a64efcc1dc4a59145094 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Thu, 1 May 2008 10:13:12 +0000 Subject: 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 --- apps/tagtree.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'apps/tagtree.c') 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; -- cgit v1.2.3