1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 20:34:39 +01:00

Emit dataChanged when changing skip track state.

Otherwise, when changing this for the currently playing track, the "strike out" change wasn't visible.
This commit is contained in:
Arnaud Bienner 2014-05-25 18:44:54 +02:00
parent f65c48ef9c
commit 134b617ec4

View File

@ -2142,5 +2142,6 @@ void Playlist::SkipTracks(const QModelIndexList& source_indexes) {
for (const QModelIndex& source_index : source_indexes) { for (const QModelIndex& source_index : source_indexes) {
PlaylistItemPtr track_to_skip = item_at(source_index.row()); PlaylistItemPtr track_to_skip = item_at(source_index.row());
track_to_skip->SetShouldSkip(!((track_to_skip)->GetShouldSkip())); track_to_skip->SetShouldSkip(!((track_to_skip)->GetShouldSkip()));
emit dataChanged(source_index, source_index);
} }
} }