Wrong task is deleted while searching
While searching the listview indexes change so if you delete the index 0 while searching that will actually delete the index 0 in the model.
While searching the listview indexes change so if you delete the index 0 while searching that will actually delete the index 0 in the model.