Check if song is empty

This commit is contained in:
craig.p.drummond
2013-08-08 19:14:29 +00:00
committed by craig.p.drummond
parent 7c76743772
commit 8eb5ec0abb
3 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ void AlbumView::refresh()
void AlbumView::update(const Song &song, bool force)
{
if (song.isEmpty()) {
if (song.isEmpty() || song.albumArtist().isEmpty() || song.album.isEmpty()) {
currentSong=song;
engine->cancel();
clear();

View File

@@ -129,7 +129,7 @@ void ArtistView::refresh()
void ArtistView::update(const Song &s, bool force)
{
if (s.isEmpty()) {
if (s.isEmpty() || s.artist.isEmpty()) {
currentSong=s;
engine->cancel();
clear();

View File

@@ -235,7 +235,7 @@ void SongView::update(const Song &s, bool force)
return;
}
if (s.isEmpty()) {
if (s.isEmpty() || s.title.isEmpty() || s.artist.isEmpty()) {
currentSong=s;
clear();
return;