Fix-up manual matching to work off new friend class.
[hermes] / package / src / org / maemo / hermes / gui / gtkui.py
index 606d7d0..8936bd9 100644 (file)
@@ -155,7 +155,7 @@ class HermesGUI(WimpWorks):
         if result == gtk.RESPONSE_OK:
             friend = view.get_selected_friend()
             if friend:
-                if 'contact' in friend and friend['contact'] == contact:
+                if friend.get_contact() == contact:
                     hildon.hildon_banner_show_information(self.main_window, '', _("Removing existing mappings is not yet supported"))
                 elif view.contact_mapped:
                     if fb2c.update_contact(contact, friend, True):