Commit 2e1336d7 authored by Luci Stanescu's avatar Luci Stanescu

Fixed clearing of current index in contact search list

parent af2af47b
......@@ -1557,7 +1557,7 @@ class ContactSearchListView(QListView):
selection_model = self.selectionModel()
selection = selection_model.selection()
if selection_model.currentIndex() not in selection:
index = selection.indexes()[0] if not selection.isEmpty() else self.model().index(-1)
index = selection.indexes()[0] if not selection.isEmpty() else self.model().index(-1, -1)
selection_model.setCurrentIndex(index, selection_model.Select)
......
Markdown is supported
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