[evolution] Pick the user_org from comp editor flags.



commit 7be980d44ee12c563966bdd9361fe83ae19a430f
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Jul 14 13:36:42 2009 +0530

    Pick the user_org from comp editor flags.
    
    Requires some clean-up.

 calendar/gui/dialogs/comp-editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index e620d54..28d33d6 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -1942,6 +1942,7 @@ comp_editor_set_flags (CompEditor *editor,
 	g_return_if_fail (IS_COMP_EDITOR (editor));
 
 	editor->priv->flags = flags;
+	editor->priv->user_org = flags & COMP_EDITOR_USER_ORG;
 
 	g_object_notify (G_OBJECT (editor), "flags");
 }
@@ -2380,7 +2381,6 @@ real_edit_comp (CompEditor *editor, ECalComponent *comp)
 		priv->comp = e_cal_component_clone (comp);
 
 	priv->existing_org = e_cal_component_has_organizer (comp);
-	priv->user_org = (itip_organizer_is_user (comp, priv->client) || itip_sentby_is_user (comp, priv->client));
 	priv->warned = FALSE;
 
 	update_window_border (editor, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]