diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-01-27 06:41:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-01-27 06:41:31 +0000 |
commit | c46ac89a27c4efd60921bc075fc79ef7b1a56364 (patch) | |
tree | d1d2c25d0c76b55ba5395b8d354d86aa6e8470d7 /src/editbook.c | |
parent | af7c0d4c4d5f20cc09dc7f709cd88c43dab567b8 (diff) |
show translated messages on the statusbar. Prohibit addressbook names begin with '@'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2443 ee746299-78ed-0310-b773-934348b2243d
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 ) { |