aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorSrinivas Ragavan <sragavan@novell.com>2005-12-14 20:46:45 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-12-14 20:46:45 +0800
commit9b1f964f440f01d0123eeb82abff990442c81578 (patch)
treefdc1331e86de6711f3d0e376afa2be073e630cf6 /calendar/gui/dialogs/comp-editor.c
parent6a2d1b117092dd984765346abcd5d75f4ea54032 (diff)
downloadgsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.tar
gsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.tar.gz
gsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.tar.bz2
gsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.tar.lz
gsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.tar.xz
gsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.tar.zst
gsoc2013-evolution-9b1f964f440f01d0123eeb82abff990442c81578.zip
Committed Johnny Patch to fix bug #324060
2005-12-14 Srinivas Ragavan <sragavan@novell.com> * Committed Johnny Patch to fix bug #324060 svn path=/trunk/; revision=30773
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 290b25afa3..aff3bb6b46 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -1240,10 +1240,23 @@ menu_file_close_cb (BonoboUIComponent *uic,
const char *path)
{
CompEditor *editor = (CompEditor *) data;
+ ECalComponent *comp;
+ ECalComponentText text;
+ CompEditorPrivate *priv = editor->priv;
+
commit_all_fields (editor);
-
- if (prompt_to_save_changes (editor, TRUE))
+
+ if (prompt_to_save_changes (editor, TRUE)) {
+ comp = comp_editor_get_current_comp (editor);
+ e_cal_component_get_summary (comp, &text);
+ g_object_unref (comp);
+
+ if (!text.value)
+ if (!send_component_prompt_subject ((GtkWindow *) editor, priv->client, priv->comp))
+ return;
+
close_dialog (editor);
+ }
}
static void