projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ea938d3
)
Fixes NB#116483, user name incorrectly prefilled when there is no Me Card
author
Sergio Villar Senín
<svillar@igalia.com>
Wed, 13 May 2009 12:16:30 +0000
(14:16 +0200)
committer
Sergio Villar Senín
<svillar@igalia.com>
Wed, 13 May 2009 12:16:30 +0000
(14:16 +0200)
src/hildon2/modest-address-book.c
patch
|
blob
|
history
diff --git
a/src/hildon2/modest-address-book.c
b/src/hildon2/modest-address-book.c
index
b90d7f1
..
de88900
100644
(file)
--- a/
src/hildon2/modest-address-book.c
+++ b/
src/hildon2/modest-address-book.c
@@
-1336,5
+1336,11
@@
modest_address_book_get_my_name ()
{
OssoABookSelfContact *self_contact = osso_abook_self_contact_get_default ();
{
OssoABookSelfContact *self_contact = osso_abook_self_contact_get_default ();
- return osso_abook_contact_get_display_name (OSSO_ABOOK_CONTACT (self_contact));
+ /* We are not using osso_abook_contact_get_display_name
+ because that method fallbacks to another fields if the name
+ is not defined */
+ if (self_contact)
+ return e_contact_get ((EContact *) self_contact, E_CONTACT_NAME);
+ else
+ return NULL;
}
}