Commit 008a9560 authored by Max Kellermann's avatar Max Kellermann

queue/Playlist: call OnModified(), eliminate duplicate code

parent 6ff01cc7
......@@ -40,8 +40,7 @@ playlist::TagModified(DetachedSong &&song)
current_song.MoveTagItemsFrom(std::move(song));
queue.ModifyAtOrder(current);
queue.IncrementVersion();
idle_add(IDLE_PLAYLIST);
OnModified();
}
inline void
......
......@@ -65,8 +65,6 @@ playlist::DatabaseModified(const Database &db)
}
}
if (modified) {
queue.IncrementVersion();
idle_add(IDLE_PLAYLIST);
}
if (modified)
OnModified();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment