Fix clang warning.

This commit is contained in:
John Maguire 2014-02-14 14:36:47 +01:00
parent fc9c983e2c
commit c162a9316d
1 changed files with 3 additions and 2 deletions

View File

@ -1083,14 +1083,15 @@ void MainWindow::ScrobblingEnabledChanged(bool value) {
if (ui_->action_toggle_scrobbling->isVisible())
SetToggleScrobblingIcon(value);
if (!app_->player()->GetState() == Engine::Idle) {
if (app_->player()->GetState() == Engine::Idle) {
return;
} else {
// invalidate current song, we will scrobble the next one
if (app_->playlist_manager()->active()->get_lastfm_status() ==
Playlist::LastFM_New)
Playlist::LastFM_New) {
app_->playlist_manager()->active()->set_lastfm_status(
Playlist::LastFM_Seeked);
}
}
bool is_lastfm = (app_->player()->GetCurrentItem()->options() &