diff options
Diffstat (limited to '')
-rw-r--r-- | src/screen_artist.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c index a83900395..c5d5a268b 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -84,20 +84,9 @@ artist_lw_callback(unsigned idx, mpd_unused int *highlight, mpd_unused void *dat /* the playlist have been updated -> fix highlights */ static void -playlist_changed_callback(mpdclient_t *c, int event, mpd_unused gpointer data) +playlist_changed_callback(mpdclient_t *c, int event, gpointer data) { - if (browser.filelist == NULL) - return; - - D("screen_artist.c> playlist_callback() [%d]\n", event); - switch(event) { - case PLAYLIST_EVENT_CLEAR: - clear_highlights(browser.filelist); - break; - default: - sync_highlights(c, browser.filelist); - break; - } + browser_playlist_changed(&browser, c, event, data); } /* fetch artists/albums/songs from mpd */ |