aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/comp-editor.c17
2 files changed, 22 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 1eb8a0aeee..66578528c3 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2005-11-27 Johnny Jacob <johnnyjacob@gmail.com>
+
+ ** Fixes bug #324060
+
+ * gui/dialogs/comp-editor.c (menu_file_close_cb):
+ Check wheather the summary is empty and prompt accordingly,
+
2005-11-28 Srinivasa Ragavan <sragavan@novell.com>
** Refixes the bug #320210
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