mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-07 20:45:28 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user