Commit ce0b30bb authored by Dan Pascu's avatar Dan Pascu

Fixed search to be case insensitive

parent ec4223c4
...@@ -269,7 +269,7 @@ class ContactSearchModel(QSortFilterProxyModel): ...@@ -269,7 +269,7 @@ class ContactSearchModel(QSortFilterProxyModel):
item = source_model.data(source_index, Qt.DisplayRole) item = source_model.data(source_index, Qt.DisplayRole)
if type(item) is ContactGroup: if type(item) is ContactGroup:
return False return False
search_string = unicode(self.filterRegExp().pattern()) search_string = unicode(self.filterRegExp().pattern()).lower()
return search_string in item.name.lower() or search_string in item.uri.lower() return search_string in item.name.lower() or search_string in item.uri.lower()
def lessThan(self, left, right): def lessThan(self, left, right):
......
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