Commit 58fecd9b authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Media Player] Skip source if it doesn't exist

We get `sourceRemoved` emitted before the source is actually removed
from the list.

This is a change from 5984d4960fa5ecf60a20b1fbc782fb841faa4af7
in plasma-framework but better be safe than sorry.

BUG: 439309
FIXED-IN: 5.23.3

(cherry picked from commit 36ed4658)
parent 6a501595
......@@ -303,9 +303,15 @@ Item {
const playerData =[source];
// source data is removed before its name is removed from the list
if (!playerData) {
'icon':[source]["Desktop Icon Name"] ||[source]["DesktopEntry"] || "emblem-music-symbolic",
'text': playerData["Identity"],
'icon': playerData["Desktop Icon Name"] || playerData["DesktopEntry"] || "emblem-music-symbolic",
'source': source
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment