Check if song is empty
This commit is contained in:
committed by
craig.p.drummond
parent
7c76743772
commit
8eb5ec0abb
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user