Commit 26f8e83a authored by Dan Pascu's avatar Dan Pascu

Fixed insertion of contacts to be in alphabetical order

parent e1733512
...@@ -211,7 +211,7 @@ class ContactModel(QAbstractListModel): ...@@ -211,7 +211,7 @@ class ContactModel(QAbstractListModel):
else: else:
position = len(self.items) position = len(self.items)
self.beginInsertRows(QModelIndex(), position, position) self.beginInsertRows(QModelIndex(), position, position)
self.items.append(contact) self.items.insert(position, contact)
self.endInsertRows() self.endInsertRows()
self.contact_list.setRowHidden(position, contact.group.collapsed) self.contact_list.setRowHidden(position, contact.group.collapsed)
else: else:
......
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