Hopefully a fix for some tablet issues
authorepage <eopage@byu.net>
Sat, 16 Aug 2008 16:31:33 +0000 (16:31 +0000)
committerepage <eopage@byu.net>
Sat, 16 Aug 2008 16:31:33 +0000 (16:31 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@138 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

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]