Update issue 3962: don't try to activate a playlist which doesn't exist/isn't opened anymore (otherwise we crash on Q_ASSERT)
This commit is contained in:
parent
36a263975e
commit
51d9080a81
@ -543,6 +543,10 @@ void Mpris2::ActivatePlaylist(const QDBusObjectPath& playlist_id) {
|
|||||||
if (!ok) {
|
if (!ok) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!app_->playlist_manager()->IsPlaylistOpen(p)) {
|
||||||
|
qLog(Error) << "Playlist isn't opened!";
|
||||||
|
return;
|
||||||
|
}
|
||||||
app_->playlist_manager()->SetActivePlaylist(p);
|
app_->playlist_manager()->SetActivePlaylist(p);
|
||||||
app_->player()->Next();
|
app_->player()->Next();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user