Skip to content

Use some() for searching in list of model indices

David Redondo requested to merge work/taskmanagercomparison into master

includes() compares for equality, two objects are only equal if both reference the same object. The active task model index is not necessarily the same as the indx corresponding to it in the list because they are created seperately. Alternatively we can just check if some index in the list is active.

Merge request reports

Loading