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

Forward role() into PulseObjectFilterModel

The stream list was changed into a `PulseObjectFilterModel` to filter out
virtual streams but there are some places that relied on the `role()` method
on the original model.

Just add a `role()` function calling into the source model.
This fixes the menu on Applications tab not working.

Ideally, we'd just use the enums on the respective model but with the
dynamic way plasma-pa creates those roles, that's difficult.
parent f1d5e6c8
......@@ -6,6 +6,10 @@ PlasmaCore.SortFilterModel {
property var filters: []
property bool filterOutInactiveDevices: false
function role(name) {
return sourceModel.role(name);
}
filterCallback: function(source_row, value) {
var idx = sourceModel.index(source_row, 0);
......
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