Commit 1a060f74 authored by Saul Ibarra's avatar Saul Ibarra

Save preferred media when creating a contact

parent bda66c34
...@@ -2060,6 +2060,7 @@ class ContactEditorDialog(base_class, ui_class): ...@@ -2060,6 +2060,7 @@ class ContactEditorDialog(base_class, ui_class):
group = self.group.itemData(group_index).toPyObject() group = self.group.itemData(group_index).toPyObject()
if self.edited_contact is None: if self.edited_contact is None:
contact = Contact(group, name, uri, image=image) contact = Contact(group, name, uri, image=image)
contact.preferred_media = preferred_media
contact.sip_aliases = sip_aliases contact.sip_aliases = sip_aliases
contact_model.addContact(contact) contact_model.addContact(contact)
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