diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-10 09:50:45 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-10 09:50:45 +0000 |
| commit | 887cfeb9f55344db5c8df1f22d5c6a02467764f3 (patch) | |
| tree | e7efd8bc2bc4eabd365fccd0d7787f1bf633fda1 /apps/tagtree.c | |
| parent | 19fe37de6fb63c8d6a8891e095f8b1fde18514eb (diff) | |
| download | rockbox-887cfeb9f55344db5c8df1f22d5c6a02467764f3.zip rockbox-887cfeb9f55344db5c8df1f22d5c6a02467764f3.tar.gz rockbox-887cfeb9f55344db5c8df1f22d5c6a02467764f3.tar.bz2 rockbox-887cfeb9f55344db5c8df1f22d5c6a02467764f3.tar.xz | |
Only sync playlist once when adding bunch of files from tagcache.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10508 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
| -rw-r--r-- | apps/tagtree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index bf1b6a1..aede719 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -975,8 +975,10 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue) continue; } - playlist_insert_track(NULL, buf, position, queue); + if (playlist_insert_track(NULL, buf, position, queue, false) < 0) + break; } + playlist_sync(NULL); tagcache_search_finish(&tcs); cpu_boost(false); @@ -999,12 +1001,13 @@ bool tagtree_insert_selection_playlist(int position, bool queue) logf("tagtree_get_filename failed"); return false; } - playlist_insert_track(NULL, buf, position, queue); + playlist_insert_track(NULL, buf, position, queue, true); return true; } /* We need to set the table to allsubentries. */ + show_search_progress(true, 0); if (dptr->newtable == navibrowse) { tagtree_enter(tc); |