diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index 64eb8061a..c77c1134e 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -256,7 +256,7 @@ void PlaylistView::SetPlaylist(Playlist* playlist) { disconnect(playlist_, SIGNAL(DynamicModeChanged(bool)), this, SLOT(DynamicModeChanged(bool))); disconnect(playlist_, SIGNAL(destroyed()), this, SLOT(PlaylistDestroyed())); - disconnect(playlist_, SIGNAL(QueueChanged()), this, SLOT(UpdateView())); + disconnect(playlist_, SIGNAL(QueueChanged()), this, SLOT(update())); disconnect(dynamic_controls_, SIGNAL(Expand()), playlist_, SLOT(ExpandDynamicPlaylist())); @@ -278,7 +278,7 @@ void PlaylistView::SetPlaylist(Playlist* playlist) { connect(playlist_, SIGNAL(DynamicModeChanged(bool)), SLOT(DynamicModeChanged(bool))); connect(playlist_, SIGNAL(destroyed()), SLOT(PlaylistDestroyed())); - connect(playlist_, SIGNAL(QueueChanged()), SLOT(UpdateView())); + connect(playlist_, SIGNAL(QueueChanged()), SLOT(update())); connect(dynamic_controls_, SIGNAL(Expand()), playlist_, SLOT(ExpandDynamicPlaylist())); @@ -1321,7 +1321,3 @@ void PlaylistView::focusInEvent(QFocusEvent* event) { } } } - -void PlaylistView::UpdateView() { - update(); -} diff --git a/src/playlist/playlistview.h b/src/playlist/playlistview.h index bce05fb94..fedc207e0 100644 --- a/src/playlist/playlistview.h +++ b/src/playlist/playlistview.h @@ -105,9 +105,6 @@ class PlaylistView : public QTreeView { const QImage& cover_art); void PlayerStopped(); - // General slot to update the whole playlistview - void UpdateView(); - signals: void PlayItem(const QModelIndex& index); void PlayPause();