aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-list-view.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-07-02 22:59:49 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-07-02 22:59:49 +0800
commit2bc7669d539114cb4b4cf19a590abaabcd9e8748 (patch)
tree8b4d9556d9b84e3861f1f0aafe0f489aa8dd1689 /calendar/gui/e-meeting-list-view.c
parentcb9a6f71878dc639b0711d97ec3bc8e16d4ffcf6 (diff)
downloadgsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.gz
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.bz2
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.lz
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.xz
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.zst
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.zip
Fixes the problem in sending the meeting to the mailing list if the list
does not contain email ids. svn path=/trunk/; revision=29619
Diffstat (limited to 'calendar/gui/e-meeting-list-view.c')
-rw-r--r--calendar/gui/e-meeting-list-view.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c
index 3e91bea40c..d3eca7dfc2 100644
--- a/calendar/gui/e-meeting-list-view.c
+++ b/calendar/gui/e-meeting-list-view.c
@@ -537,6 +537,7 @@ static void
process_section (EMeetingListView *view, GList *destinations, icalparameter_role role)
{
EMeetingListViewPrivate *priv;
+ gboolean contact_list = FALSE;
GList *l;
priv = view->priv;
@@ -548,6 +549,11 @@ process_section (EMeetingListView *view, GList *destinations, icalparameter_role
if (e_destination_is_evolution_list (destination)) {
list_dests = e_destination_list_get_dests (destination);
} else {
+ /* check if the contact is contact list which is not expanded yet */
+ /* we dont expand it currently, TODO do we need to expand it by default */
+ if (e_contact_get (e_destination_get_contact (destination), E_CONTACT_IS_LIST))
+ contact_list = TRUE;
+
card_dest.next = NULL;
card_dest.prev = NULL;
card_dest.data = destination;
@@ -581,7 +587,12 @@ process_section (EMeetingListView *view, GList *destinations, icalparameter_role
/* If we couldn't get the attendee prior, get the email address as the default */
if (attendee == NULL || *attendee == '\0') {
- attendee = e_destination_get_email (dest);
+ /* If its a contact_list which is not expanded it wont have a email id,
+ so we can use the name as the email id */
+ if (!contact_list)
+ attendee = e_destination_get_email (dest);
+ else
+ attendee = e_destination_get_name (dest);
}
if (attendee == NULL || *attendee == '\0')