diff --git a/src/LyricsView.cpp b/src/LyricsView.cpp index 8d27d45..ce0673c 100644 --- a/src/LyricsView.cpp +++ b/src/LyricsView.cpp @@ -184,7 +184,7 @@ LyricsView::Pulse() BString lyrics; song.Lyrics(&lyrics); fTextView->SetText(lyrics.String()); - SetInactive(false); + SetInactive(lyrics.IsEmpty()); } if (fAutoScroll) { @@ -236,9 +236,12 @@ LyricsView::SetInactive(bool inactive) else if (!inactive && fScrollView->IsHidden()) fScrollView->Show(); - if (inactive) { + if (inactive && fMediaPlayer->IsValid()) { fTextView->SetText("No lyrics to display!"); fTextView->SetAlignment(B_ALIGN_CENTER); + } else if (inactive) { + fTextView->SetText("No targeted MediaPlayer!"); + fTextView->SetAlignment(B_ALIGN_CENTER); } else fTextView->SetAlignment(B_ALIGN_LEFT);