From f21183f498a83acef583fec65dfa207a36bcc8cb Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Sat, 26 Feb 2005 03:09:11 +0000 Subject: Just close the editor when user presees cancel or closes the editor when 2005-02-25 Sivaiah Nallagatla * gui/conact-editor/eab-editor.c (eab_editor_prompt_to_save_changes) : Just close the editor when user presees cancel or closes the editor when there are no changes. Seems to be broken by earlier Change for #70371 Fixes #73005 svn path=/trunk/; revision=28892 --- addressbook/ChangeLog | 11 +++++++++++ addressbook/gui/contact-editor/eab-editor.c | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index be29ce328f..f104dea64a 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,14 @@ +2005-02-25 Sivaiah Nallagatla + + * gui/conact-editor/eab-editor.c + (eab_editor_prompt_to_save_changes) : Just close + the editor when user presees cancel or closes the editor + when there are no changes. Seems to be broken + by earlier Change for #70371 + + Fixes #73005 + + 2005-02-24 Sushma Rai * gui/component/addressbook-config.c (addressbook_config_edit_source): diff --git a/addressbook/gui/contact-editor/eab-editor.c b/addressbook/gui/contact-editor/eab-editor.c index 278f8a4c3f..8f03352af0 100644 --- a/addressbook/gui/contact-editor/eab-editor.c +++ b/addressbook/gui/contact-editor/eab-editor.c @@ -258,8 +258,10 @@ eab_editor_get_window (EABEditor *editor) gboolean eab_editor_prompt_to_save_changes (EABEditor *editor, GtkWindow *window) { - if (!eab_editor_is_changed (editor)) + if (!eab_editor_is_changed (editor)) { + eab_editor_close (EAB_EDITOR (editor)); return TRUE; + } switch (eab_prompt_save_dialog (window)) { case GTK_RESPONSE_YES: -- cgit v1.2.3