diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-15 19:58:12 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-15 19:58:12 +0100 |
commit | ab875885195c5adae7eace82611659c1ef026d0c (patch) | |
tree | a1f6c71f82fb813b13f91b6f96e67f967e0dd188 /playlist.c | |
parent | d110bd22b9d46cd3924d679b52e619d519aa26b8 (diff) |
remember selected tab
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -175,7 +175,7 @@ plt_get_count (void) { return playlists_count; } -void +int plt_add (int before, const char *title) { trace ("plt_add\n"); playlist_t *plt = malloc (sizeof (playlist_t)); @@ -220,6 +220,7 @@ plt_add (int before, const char *title) { if (!plt_loading) { plug_trigger_event (DB_EV_PLAYLISTSWITCH, 0); } + return playlists_count-1; } void |