mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-23 16:01:43 +01:00
Fix a bug that meant the track progress slider was greyed out on the first song in a last.fm radio stream
This commit is contained in:
parent
3d34aa240c
commit
6f2119bce0
@ -691,6 +691,7 @@ void MainWindow::SetCurrentPlaylist(PlaylistView* pCurrent){
|
|||||||
// connects !! :)
|
// connects !! :)
|
||||||
|
|
||||||
connect(current_playlist_, SIGNAL(CurrentSongChanged(Song)), osd_, SLOT(SongChanged(Song)));
|
connect(current_playlist_, SIGNAL(CurrentSongChanged(Song)), osd_, SLOT(SongChanged(Song)));
|
||||||
|
connect(current_playlist_, SIGNAL(CurrentSongChanged(Song)), player_, SLOT(CurrentMetadataChanged(Song)));
|
||||||
connect(current_playlist_view_, SIGNAL(doubleClicked(QModelIndex)), SLOT(PlayIndex(QModelIndex)));
|
connect(current_playlist_view_, SIGNAL(doubleClicked(QModelIndex)), SLOT(PlayIndex(QModelIndex)));
|
||||||
connect(current_playlist_view_, SIGNAL(PlayPauseItem(QModelIndex)), SLOT(PlayIndex(QModelIndex)));
|
connect(current_playlist_view_, SIGNAL(PlayPauseItem(QModelIndex)), SLOT(PlayIndex(QModelIndex)));
|
||||||
connect(current_playlist_view_, SIGNAL(RightClicked(QPoint,QModelIndex)), SLOT(PlaylistRightClick(QPoint,QModelIndex)));
|
connect(current_playlist_view_, SIGNAL(RightClicked(QPoint,QModelIndex)), SLOT(PlaylistRightClick(QPoint,QModelIndex)));
|
||||||
|
@ -210,9 +210,13 @@ void Player::StreamReady(const QUrl& original_url, const QUrl& media_url) {
|
|||||||
|
|
||||||
engine_->play(media_url);
|
engine_->play(media_url);
|
||||||
|
|
||||||
lastfm_->NowPlaying(item->Metadata());
|
|
||||||
current_item_options_ = item->options();
|
|
||||||
current_item_ = item->Metadata();
|
current_item_ = item->Metadata();
|
||||||
|
current_item_options_ = item->options();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Player::CurrentMetadataChanged(const Song &metadata) {
|
||||||
|
lastfm_->NowPlaying(metadata);
|
||||||
|
current_item_ = metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::Seek(int seconds) {
|
void Player::Seek(int seconds) {
|
||||||
|
@ -46,6 +46,7 @@ class Player : public QObject {
|
|||||||
|
|
||||||
void TrackEnded();
|
void TrackEnded();
|
||||||
void StreamReady(const QUrl& original_url, const QUrl& media_url);
|
void StreamReady(const QUrl& original_url, const QUrl& media_url);
|
||||||
|
void CurrentMetadataChanged(const Song& metadata);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void InitFinished();
|
void InitFinished();
|
||||||
|
Loading…
Reference in New Issue
Block a user