diff options
Diffstat (limited to '')
-rw-r--r-- | src/Playlist.cxx | 4 | ||||
-rw-r--r-- | src/Playlist.hxx | 5 | ||||
-rw-r--r-- | src/UpdateGlue.cxx | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/Playlist.cxx b/src/Playlist.cxx index a402471da..1977188da 100644 --- a/src/Playlist.cxx +++ b/src/Playlist.cxx @@ -31,9 +31,9 @@ #define G_LOG_DOMAIN "playlist" void -playlist_increment_version_all(struct playlist *playlist) +playlist::FullIncrementVersions() { - playlist->queue.ModifyAll(); + queue.ModifyAll(); idle_add(IDLE_PLAYLIST); } diff --git a/src/Playlist.hxx b/src/Playlist.hxx index eb048eb9a..5e64a8e81 100644 --- a/src/Playlist.hxx +++ b/src/Playlist.hxx @@ -131,6 +131,8 @@ public: void TagChanged(); + void FullIncrementVersions(); + enum playlist_result AppendSong(player_control &pc, struct song *song, unsigned *added_id=nullptr); @@ -254,7 +256,4 @@ public: void playlist_global_init(); -void -playlist_increment_version_all(struct playlist *playlist); - #endif diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx index d990ddfe6..984535bef 100644 --- a/src/UpdateGlue.cxx +++ b/src/UpdateGlue.cxx @@ -155,7 +155,7 @@ static void update_finished_event(void) if (modified) { /* send "idle" events */ - playlist_increment_version_all(&global_partition->playlist); + global_partition->playlist.FullIncrementVersions(); idle_add(IDLE_DATABASE); } |