diff options
Diffstat (limited to 'src/editbook.c')
-rw-r--r-- | src/editbook.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/editbook.c b/src/editbook.c index 9f935bde..4e42e43a 100644 --- a/src/editbook.c +++ b/src/editbook.c @@ -325,7 +325,8 @@ AdapterDSource *addressbook_edit_book( AddressIndex *addrIndex, AdapterDSource * fin = FALSE; sName = gtk_editable_get_chars( GTK_EDITABLE(addrbookedit_dlg.name_entry), 0, -1 ); - if( *sName == '\0' ) fin = TRUE; + g_strstrip(sName); + if( *sName == '\0' || *sName == '@' ) fin = TRUE; if( fin ) { if( newBook ) { |