Monotone-Parent: 8d6e71b994b7d6f015c187ce841c7ffee79c5b0d

Monotone-Revision: 9b75a56ce8daf9300f46778c1489c7a8d55088da

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-26T18:41:05
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-26 18:41:05 +00:00
parent dcc04e1a08
commit 10705cbe1e
2 changed files with 15 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-09-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactEditor.m ([UIxContactEditor
-initSnapshot]): check if "[card n]" returns anything to avoid a
crash.
* UI/Common/UIxPageFrame.m ([UIxPageFrame -doctype]): new method
that returns an unparsed doctype definition for the pages.
+11 -3
View File
@@ -259,11 +259,19 @@
{
NSArray *n, *elements;
CardElement *element;
unsigned int max;
n = [card n];
[self _setSnapshotValue: @"sn" to: [n objectAtIndex: 0]];
[self _setSnapshotValue: @"givenName" to: [n objectAtIndex: 1]];
if (n)
{
max = [n count];
if (max > 0)
{
[self _setSnapshotValue: @"sn" to: [n objectAtIndex: 0]];
if (max > 1)
[self _setSnapshotValue: @"givenName" to: [n objectAtIndex: 1]];
}
}
[self _setSnapshotValue: @"fn" to: [card fn]];
[self _setSnapshotValue: @"nickname" to: [card nickname]];