Reset current_covert_art when player is stopped
This commit is contained in:
parent
2a4ab30a69
commit
4e54634504
|
@ -163,6 +163,7 @@ void PlaylistView::SetApplication(Application *app) {
|
|||
connect(app_->player(), SIGNAL(Paused()), SLOT(StopGlowing()));
|
||||
connect(app_->player(), SIGNAL(Playing()), SLOT(StartGlowing()));
|
||||
connect(app_->player(), SIGNAL(Stopped()), SLOT(StopGlowing()));
|
||||
connect(app_->player(), SIGNAL(Stopped()), SLOT(PlayerStopped()));
|
||||
}
|
||||
|
||||
void PlaylistView::SetItemDelegates(LibraryBackend* backend) {
|
||||
|
@ -1134,3 +1135,6 @@ void PlaylistView::set_background_image(const QImage& image) {
|
|||
}
|
||||
}
|
||||
|
||||
void PlaylistView::PlayerStopped() {
|
||||
CurrentSongChanged(Song(), QString(), QImage());
|
||||
}
|
||||
|
|
|
@ -103,6 +103,7 @@ class PlaylistView : public QTreeView {
|
|||
|
||||
void CopyCurrentSongToClipboard() const;
|
||||
void CurrentSongChanged(const Song& new_song, const QString& uri, const QImage& cover_art);
|
||||
void PlayerStopped();
|
||||
|
||||
signals:
|
||||
void PlayItem(const QModelIndex& index);
|
||||
|
|
Loading…
Reference in New Issue