Commit 61f06984 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove count property from PulseObjectFilterModel

PlasmaCore.SortFilterModel already has a count property that does what
we need.

For reasons that I don't fully understand this extra count property
confused the view in such a way that extra "empty" sink items were
visible in certain circumstances.

BUG: 427978
parent bcdeaaff
......@@ -6,14 +6,6 @@ PlasmaCore.SortFilterModel {
property var filters: []
property bool filterOutInactiveDevices: false
// Not readonly because we have to assign to it below, even though you
// really shouldn't change it from outside of this model
property int count: rowCount()
onRowsInserted: count = rowCount()
onRowsRemoved: count = rowCount()
onModelReset: count = rowCount()
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