projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46f5f01
)
* Fixes NB#77103, the message is not sent if the user does not select any recipient...
author
Sergio Villar Senin
<svillar@igalia.com>
Tue, 27 Nov 2007 12:17:27 +0000
(12:17 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Tue, 27 Nov 2007 12:17:27 +0000
(12:17 +0000)
pmo-trunk-r3828
src/maemo/modest-address-book.c
patch
|
blob
|
history
diff --git
a/src/maemo/modest-address-book.c
b/src/maemo/modest-address-book.c
index
85369e6
..
03e29d6
100644
(file)
--- a/
src/maemo/modest-address-book.c
+++ b/
src/maemo/modest-address-book.c
@@
-879,17
+879,21
@@
resolve_address (const gchar *address, GSList **resolved_addresses, gchar **cont
/* get the resolved contacts (can be no contact) */
if (resolved_contacts) {
/* get the resolved contacts (can be no contact) */
if (resolved_contacts) {
+ gboolean found;
EContact *contact = (EContact *) resolved_contacts->data;
*resolved_addresses = get_recipients_for_given_contact (contact);
if (*resolved_addresses) {
*contact_id = g_strdup (e_contact_get_const (contact, E_CONTACT_UID));
EContact *contact = (EContact *) resolved_contacts->data;
*resolved_addresses = get_recipients_for_given_contact (contact);
if (*resolved_addresses) {
*contact_id = g_strdup (e_contact_get_const (contact, E_CONTACT_UID));
+ found = TRUE;
+ } else {
+ found = FALSE;
}
g_list_foreach (resolved_contacts, (GFunc)unref_gobject, NULL);
g_list_free (resolved_contacts);
}
g_list_foreach (resolved_contacts, (GFunc)unref_gobject, NULL);
g_list_free (resolved_contacts);
- return TRUE;
+ return found;
} else {
/* cancelled dialog to select more than one contact or
* selected no contact */
} else {
/* cancelled dialog to select more than one contact or
* selected no contact */