Skip to content

Commit

Permalink
Update issue 3962: don't try to activate a playlist which doesn't exi…
Browse files Browse the repository at this point in the history
…st/isn't opened anymore (otherwise we crash on Q_ASSERT)

(cherry picked from commit 51d9080)
  • Loading branch information
ArnaudBienner committed Nov 17, 2013
1 parent fe34d4d commit 44a154e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/mpris2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ void Mpris2::ActivatePlaylist(const QDBusObjectPath& playlist_id) {
if (!ok) {
return;
}
if (!app_->playlist_manager()->IsPlaylistOpen(p)) {
qLog(Error) << "Playlist isn't opened!";
return;
}
app_->playlist_manager()->SetActivePlaylist(p);
app_->player()->Next();
}
Expand Down

0 comments on commit 44a154e

Please sign in to comment.