aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 447d5b4fa0..2cbf403cd3 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -721,6 +721,9 @@ save_comp (CompEditor *editor)
GList *l;
priv = editor->priv;
+
+ if (!priv->changed)
+ return;
for (l = priv->pages; l != NULL; l = l->next)
comp_editor_page_fill_component (l->data, priv->comp);
@@ -740,12 +743,15 @@ static void
save_comp_with_send (CompEditor *editor)
{
CompEditorPrivate *priv;
-
+ gboolean send;
+
priv = editor->priv;
+ send = priv->changed && priv->needs_send;
+
save_comp (editor);
- if (priv->needs_send && send_component_dialog (priv->comp))
+ if (send && send_component_dialog (priv->comp))
comp_editor_send_comp (editor, CAL_COMPONENT_METHOD_REQUEST);
}