summaryrefslogtreecommitdiff
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.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)
1497 c->dirlevel--; 1497 c->dirlevel--;
1498 /* about to create a new current playlist... 1498 /* about to create a new current playlist...
1499 allow user to cancel the operation */ 1499 allow user to cancel the operation */
1500 if (global_settings.warnon_erase_dynplaylist && 1500 if (!warn_on_pl_erase())
1501 !global_settings.party_mode && 1501 break;
1502 playlist_modified(NULL))
1503 {
1504 static const char *lines[]={ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)};
1505 static const struct text_message message={lines, 1};
1506
1507 if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES)
1508 break;
1509 }
1510 1502
1511 if (tagtree_play_folder(c) >= 0) 1503 if (tagtree_play_folder(c) >= 0)
1512 rc = 2; 1504 rc = 2;