From 38280bb1daa5fe3712f28781ac61591bcdd521d1 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 10 Aug 2006 07:53:02 +0000 Subject: Do not resend the memos while modification. svn path=/trunk/; revision=32521 --- calendar/gui/dialogs/memo-editor.c | 3 --- calendar/gui/dialogs/memo-page.c | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/memo-editor.c b/calendar/gui/dialogs/memo-editor.c index 2c6356988d..56ad644801 100644 --- a/calendar/gui/dialogs/memo-editor.c +++ b/calendar/gui/dialogs/memo-editor.c @@ -247,9 +247,6 @@ memo_editor_edit_comp (CompEditor *editor, ECalComponent *comp) CompEditorFlags flags = comp_editor_get_flags (editor); ECal *client = comp_editor_get_e_cal (editor); - if (flags & COMP_EDITOR_IS_SHARED) - comp_editor_set_needs_send (editor, itip_organizer_is_user (comp, client)); - if (COMP_EDITOR_CLASS (memo_editor_parent_class)->edit_comp) COMP_EDITOR_CLASS (memo_editor_parent_class)->edit_comp (editor, comp); } diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index 41d03f322b..1bd47883d5 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -703,7 +703,7 @@ memo_page_fill_component (CompEditorPage *page, ECalComponent *comp) if (str) g_free (str); - if ((page->flags & COMP_EDITOR_PAGE_IS_SHARED) && (page->flags & COMP_EDITOR_PAGE_NEW_ITEM) && fill_comp_with_recipients (priv->name_selector, comp)) { + if ((page->flags & COMP_EDITOR_PAGE_IS_SHARED) && fill_comp_with_recipients (priv->name_selector, comp)) { ECalComponentOrganizer organizer = {NULL, NULL, NULL, NULL}; EAccount *a; @@ -731,7 +731,8 @@ memo_page_fill_component (CompEditorPage *page, ECalComponent *comp) organizer.cn = a->id->name; e_cal_component_set_organizer (comp, &organizer); - comp_editor_page_notify_needs_send (page); + if (page->flags & COMP_EDITOR_PAGE_NEW_ITEM) + comp_editor_page_notify_needs_send (page); g_free (addr); } -- cgit v1.2.3