remove unneded checks in Lyrics::Update() if Reload is requested

they are checked again in Lyrics::SwitchTo(), so why bother?
master
Andrzej Rybczak 17 years ago
parent d6fbb2f657
commit 6e903f9fc8
  1. 8
      src/lyrics.cpp

@ -86,14 +86,8 @@ void Lyrics::Update()
myLyrics->Take();
# endif // HAVE_CURL_CURL_H && HAVE_PTHREAD_H
if (!Reload)
return;
const MPD::Song *s = myPlaylist->NowPlayingSong();
if (s && !s->GetArtist().empty() && !s->GetTitle().empty())
if (Reload)
SwitchTo();
else
Reload = 0;
}
void Lyrics::SwitchTo()

Loading…
Cancel
Save