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/gui/contact-editor/eab-editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addressbook/gui') 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