aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-08-15 23:30:45 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-08-15 23:30:45 +0800
commit732c21a0a85b742dd5741b6b1f9823892a62509e (patch)
tree61ec63373633aaa6e244b87108e39006e250aa55 /calendar/gui/dialogs
parent800c67cb4b02698c75b74766dc5a6d7dabbabaa3 (diff)
downloadgsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar
gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.gz
gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.bz2
gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.lz
gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.xz
gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.zst
gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.zip
only fill the component and save it if something has changed
2001-08-15 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (save_comp): only fill the component and save it if something has changed (save_comp_with_send): only try to send if something has changed and the editor needs a send svn path=/trunk/; revision=12052
Diffstat (limited to 'calendar/gui/dialogs')
-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);
}