author | qc161282 |
Mon, 22 Mar 2010 08:07:46 +0000 | |
changeset 17738 | a4d59cdaed69 |
permissions | -rw-r--r-- |
17738 | 1 |
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c |
2 |
index 36bd4ed..d10ceea 100644 |
|
3 |
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c |
|
4 |
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c |
|
5 |
@@ -605,6 +605,8 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi |
|
6 |
if (lt != NULL && gt != NULL && (gt - lt) > 0) { |
|
7 |
name = g_strndup (email, lt - email); |
|
8 |
addr = g_strndup (lt + 1, gt - lt - 1); |
|
9 |
+ } else { |
|
10 |
+ addr = email; |
|
11 |
} |
|
12 |
||
13 |
e_contact_quick_add (name, addr, cb, closure); |