Fix current track display when chaging from one track with no meta-data to another with no meta-data.
This commit is contained in:
committed by
Craig Drummond
parent
7546ec45e2
commit
f35bd073df
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user