[Pkg-mozext-commits] [gcontactsync] 02/17: Issue #47 - Error updating card after being removed warning in log
David Prévot
taffit at moszumanska.debian.org
Sat Nov 1 23:37:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository gcontactsync.
commit 751a92f382478095f3b403d607af3e98b36f798b
Author: Josh Geenen <joshgeenen at gmail.com>
Date: Mon Sep 1 14:35:06 2014 -0500
Issue #47 - Error updating card after being removed warning in log
---
src/content/AbListener.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/content/AbListener.js b/src/content/AbListener.js
index 7730739..3699ed1 100644
--- a/src/content/AbListener.js
+++ b/src/content/AbListener.js
@@ -82,14 +82,14 @@ com.gContactSync.AbListener = {
if (aParentDir.isMailList) {
try {
aItem.QueryInterface(Components.interfaces.nsIAbCard);
- var now = (new Date()).getTime() / 1000,
- uri = this.getURI(aParentDir),
- // the parent of aParentDir (aParentDir is a mailing list, dir is the
- // directory in which aParentDir is stored)
- dir = new com.gContactSync.GAddressBook(com.gContactSync.AbManager.getAbByURI(uri)),
- contact = new com.gContactSync.TBContact(aItem, dir);
+ var now = (new Date()).getTime() / 1000;
// the URI of the list's parent
+ var uri = this.getURI(aParentDir);
uri = uri.substring(0, uri.lastIndexOf("/"));
+ // the parent of aParentDir (aParentDir is a mailing list, dir is the
+ // directory in which aParentDir is stored)
+ var dir = new com.gContactSync.GAddressBook(com.gContactSync.AbManager.getAbByURI(uri));
+ var contact = new com.gContactSync.TBContact(aItem, dir);
// set the last modified date and update the card
contact.setValue("LastModifiedDate", now);
contact.update();
--
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