diff --git a/applet/contents/ui/DeviceListItem.qml b/applet/contents/ui/DeviceListItem.qml --- a/applet/contents/ui/DeviceListItem.qml +++ b/applet/contents/ui/DeviceListItem.qml @@ -39,6 +39,6 @@ return "phone"; } } - return IconName || "unknown"; + return IconName; } } diff --git a/applet/contents/ui/ListItemBase.qml b/applet/contents/ui/ListItemBase.qml --- a/applet/contents/ui/ListItemBase.qml +++ b/applet/contents/ui/ListItemBase.qml @@ -82,10 +82,16 @@ PlasmaCore.IconItem { id: clientIcon - visible: valid Layout.alignment: Qt.AlignHCenter Layout.preferredHeight: column.height * 0.75 Layout.preferredWidth: Layout.preferredHeight + source: "unknown" + + onSourceChanged: { + if (!valid && source != "unknown") { + source = "unknown"; + } + } DragAndDrop.DragArea { id: dragArea diff --git a/applet/contents/ui/StreamListItem.qml b/applet/contents/ui/StreamListItem.qml --- a/applet/contents/ui/StreamListItem.qml +++ b/applet/contents/ui/StreamListItem.qml @@ -26,5 +26,5 @@ ListItemBase { label: Client ? i18nc("label of stream items", "%1: %2", Client.name, Name) : Name - icon: IconName || "unknown" + icon: IconName }