[Pkg-mozext-commits] [gcontactsync] 02/19: Issue #67: AB not displayed in new account dialog after having its synced AB cleared in Edit Accounts

David Prévot taffit at moszumanska.debian.org
Thu Apr 2 17:47:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository gcontactsync.

commit 80f0858039ae90febedffc1225be2faac9fad1d1
Author: Josh Geenen <joshgeenen at gmail.com>
Date:   Sun Mar 29 14:38:20 2015 -0500

    Issue #67:  AB not displayed in new account dialog after having its synced AB cleared in Edit Accounts
---
 src/content/AccountSetupWizard.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/content/AccountSetupWizard.js b/src/content/AccountSetupWizard.js
index ccd160e..d12fc21 100644
--- a/src/content/AccountSetupWizard.js
+++ b/src/content/AccountSetupWizard.js
@@ -200,13 +200,13 @@ com.gContactSync.AccountSetupWizard = {
     aSearch = (aSearch || this.mEmailAddress).toLowerCase();
     for (var uri in abs) {
       // Skip over address books that are already synchronized
-      if (abs.hasOwnProperty(uri) && !abs[uri].mPrefs.Username) {
+      if (abs.hasOwnProperty(uri) && (!abs[uri].mPrefs.Username || abs[uri].mPrefs.Username === "none")) {
         abNameElem.appendItem(abs[uri].getName(), uri);
         if (abs[uri].getName().toLowerCase() === aSearch) {
           selectedIndex = i;
         }
+        ++i;
       }
-      ++i;
     }
     if (selectedIndex === -1) {
       var name = aSearch;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/gcontactsync.git



More information about the Pkg-mozext-commits mailing list