From 9a0a8fd471d4ca1c95be5b6dd0a8ccf43764f94e Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 13 Feb 2007 05:53:19 +0000 Subject: when deleting email from group, only remove from group list and not from person. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1541 ee746299-78ed-0310-b773-934348b2243d --- src/addrbook.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/addrbook.c') diff --git a/src/addrbook.c b/src/addrbook.c index 19a1ba00..95bf6ba5 100644 --- a/src/addrbook.c +++ b/src/addrbook.c @@ -264,7 +264,17 @@ ItemEMail *addrbook_person_remove_email( AddressBookFile *book, ItemPerson *pers g_return_val_if_fail( book != NULL, NULL ); item = addrcache_person_remove_email( book->addressCache, person, email ); - if( item ); book->dirtyFlag = TRUE; + if( item ) book->dirtyFlag = TRUE; + return item; +} + +ItemEMail *addrbook_group_remove_email( AddressBookFile *book, ItemGroup *group, ItemEMail *email ) { + ItemEMail *item; + + g_return_val_if_fail( book != NULL, NULL ); + + item = addritem_group_remove_email( group, email ); + if( item ) book->dirtyFlag = TRUE; return item; } -- cgit v1.2.3