Use some() for searching in list of model indices
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.
Showing with 2 additions and 2 deletions