Fix current track display when chaging from one track with no meta-data to another with no meta-data.

This commit is contained in:
Craig Drummond
2016-06-03 16:56:20 +01:00
committed by Craig Drummond
parent 7546ec45e2
commit f35bd073df
3 changed files with 4 additions and 2 deletions

View File

@@ -36,6 +36,8 @@
20. Fix drag'n'drop of non-loaded playlists.
21. Use a single-shot timer to timeout obtaining current cover.
22. Fix AudioCD playback when MPD's curl is using IPv6
23. Fix current track display when chaging from one track with no meta-data to
another with no meta-data.
2.0.0
-----

View File

@@ -1688,7 +1688,7 @@ void MainWindow::updateCurrentSong(Song song, bool wasEmpty)
if (song.isCdda()) {
emit getStatus();
if (song.isUnknownAlbum()) {
Song pqSong=PlayQueueModel::self()->getSongById(current.id);
Song pqSong=PlayQueueModel::self()->getSongById(song .id);
if (!pqSong.isEmpty()) {
song=pqSong;
}

View File

@@ -135,7 +135,7 @@ struct Song
int compareTo(const Song &o) const;
virtual ~Song() { }
bool isEmpty() const;
bool isDifferent(const Song &s) const { return year!=s.year || artist!=s.artist || album!=s.album || title!=s.title || name()!=s.name(); }
bool isDifferent(const Song &s) const { return file!=s.file || year!=s.year || artist!=s.artist || album!=s.album || title!=s.title || name()!=s.name(); }
void guessTags();
void revertGuessedTags();
void fillEmptyFields();