Hopefully a fix for some tablet issues
[gc-dialer] / src / evo_backend.py
index 85452ae..c094c2e 100644 (file)
@@ -53,6 +53,10 @@ class EvolutionAddressBook(object):
                if not self.is_supported():
                        return
 
+               if len(evolution.ebook.list_addressbooks()) == 0 and evolution.ebook.open_addressbook('default') is not None:
+                       # It appears that Maemo's e-d-s does not always list the default addressbook, so we're faking it being listed
+                       yield self, "default", "Maemo"
+
                for bookId in evolution.ebook.list_addressbooks():
                        yield self, bookId[1], bookId[0]