summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-12-21 05:44:00 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-12-21 05:44:00 +0000
commit6643a3bc74020293117191875bd81ce535d8c6de (patch)
tree2e372971641e0a9f8bc9d79ecbbaf496708f5c36 /apps/tagtree.c
parent65f18a7044a6b80d086d741eab38f2f8d9946ebe (diff)
Fix FS#9660 - make warn on playlist erase work correctly when creating a new playlist from the database (a bit of a hack, but not bad enough to outright reject)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24089 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 4b67b73ca6..ef9c9d2de7 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1507,7 +1507,6 @@ int tagtree_enter(struct tree_context* c)
allow user to cancel the operation */
if (!warn_on_pl_erase())
break;
-
if (tagtree_play_folder(c) >= 0)
rc = 2;
break;
@@ -1729,7 +1728,7 @@ static int tagtree_play_folder(struct tree_context* c)
gui_synclist_select_item(&tree_lists, c->selected_item);
playlist_start(c->selected_item,0);
-
+ playlist_get_current()->num_inserted_tracks = 0; /* make warn on playlist erase work */
return 0;
}