diff options
author | Jeff Cai <jeff.cai@sun.com> | 2010-04-08 10:18:37 +0800 |
---|---|---|
committer | Jeff Cai <jeff.cai@sun.com> | 2010-04-08 10:22:01 +0800 |
commit | f0a09020d6824e86e13e1ee64c23a4a0a0200f40 (patch) | |
tree | d3f5ad9d57a8672cf232e26c431c784936348bdb /addressbook | |
parent | 3dfd9aa7c4b24f8971382dcc5278714956066ff8 (diff) | |
download | gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.tar gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.tar.gz gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.tar.bz2 gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.tar.lz gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.tar.xz gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.tar.zst gsoc2013-evolution-f0a09020d6824e86e13e1ee64c23a4a0a0200f40.zip |
Fix for bug #613564
If no <> in the email address, addr should be the full email address.
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-quick-add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 36bd4ed948..d10ceeac6f 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -605,6 +605,8 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi if (lt != NULL && gt != NULL && (gt - lt) > 0) { name = g_strndup (email, lt - email); addr = g_strndup (lt + 1, gt - lt - 1); + } else { + addr = email; } e_contact_quick_add (name, addr, cb, closure); |