From 425919f82b875a64a16a2af6c0e096f3e12e8fff Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 5 Aug 2008 14:16:42 +0000 Subject: [PATCH] Monotone-Parent: 7b44f54acaa78763162cefc160fada0303ee1d95 Monotone-Revision: 6a217855934fc04c26a67eb172cd3e529da227b3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-05T14:16:42 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/Contacts/UIxContactEditor.m | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cbcc580aa..2327943cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-05 Wolfgang Sourdeau + + * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -isNew]): + invoke "isNew" to the client object only if it is an instance of + SOGoContentObject... + 2008-08-04 Wolfgang Sourdeau * SoObjects/Appointments/SOGoCalendarComponent.m diff --git a/UI/Contacts/UIxContactEditor.m b/UI/Contacts/UIxContactEditor.m index 4ea1b1053..1b5989c22 100644 --- a/UI/Contacts/UIxContactEditor.m +++ b/UI/Contacts/UIxContactEditor.m @@ -159,7 +159,12 @@ - (BOOL) isNew { - return [[self clientObject] isNew]; + id co; + + co = [self clientObject]; + + return ([co isKindOfClass: [SOGoContentObject class]] + && [co isNew]); } - (NSArray *) addressBooksList