From 51d9080a81ef4113c7d3c411efd1e7cf591a23f3 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sat, 16 Nov 2013 19:52:14 +0100 Subject: [PATCH] Update issue 3962: don't try to activate a playlist which doesn't exist/isn't opened anymore (otherwise we crash on Q_ASSERT) --- src/core/mpris2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/mpris2.cpp b/src/core/mpris2.cpp index 25321d800..d0a1ba9ff 100644 --- a/src/core/mpris2.cpp +++ b/src/core/mpris2.cpp @@ -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(); }