patches/evolution-11-add-contact-email.diff
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17738 a4d59cdaed69
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17738
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     1
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     2
index 36bd4ed..d10ceea 100644
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     3
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     4
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     5
@@ -605,6 +605,8 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     6
 	if (lt != NULL && gt != NULL && (gt - lt) > 0) {
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     7
 		name = g_strndup (email, lt - email);
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     8
 		addr = g_strndup (lt + 1, gt - lt - 1);
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
     9
+	} else {
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    10
+		addr = email;
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    11
 	}
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    12
 
a4d59cdaed69 2010-03-23 Jeff Cai <[email protected]>
qc161282
parents:
diff changeset
    13
 	e_contact_quick_add (name, addr, cb, closure);