Reset current_covert_art when player is stopped

This commit is contained in:
Arnaud Bienner 2012-03-13 23:15:53 +01:00
parent 2a4ab30a69
commit 4e54634504
2 changed files with 5 additions and 0 deletions

View File

@ -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());
}

View File

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