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

This commit is contained in:
Max Kellermann 2016-03-10 20:03:01 +01:00
parent 6ff01cc72c
commit 008a9560fe
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -65,8 +65,6 @@ playlist::DatabaseModified(const Database &db)
}
}
if (modified) {
queue.IncrementVersion();
idle_add(IDLE_PLAYLIST);
}
if (modified)
OnModified();
}