Merge pull request #4669 from TheUbuntuGuy/master

Don't load the moodbar if the song was stopped
This commit is contained in:
David Sansome 2014-12-23 09:26:39 +11:00
commit 75cea2f2b9
1 changed files with 11 additions and 0 deletions

View File

@ -69,6 +69,17 @@ void MoodbarController::AsyncLoadComplete(MoodbarPipeline* pipeline,
if (current_item && current_item->Url() != url) {
return;
}
// Did we stop the song?
switch(app_->player()->GetState()) {
case Engine::Error:
case Engine::Empty:
case Engine::Idle:
return;
break;
default:
break;
}
emit CurrentMoodbarDataChanged(pipeline->data());
}