From 373a930405e4d2dd867bf8f8f81b9fbde47a9871 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Fri, 26 Mar 2004 04:09:18 +0000 Subject: do eab_editor_is_valid check only when user wants to save. 2004-03-25 Sivaiah Nallagatla * gui/component/eab-editor.c (eab_editor_prompt_to_save_changes) : do eab_editor_is_valid check only when user wants to save. svn path=/trunk/; revision=25191 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/contact-editor/eab-editor.c | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 55d5f550f8..526bfc83bd 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2004-03-25 Sivaiah Nallagatla + + * gui/component/eab-editor.c (eab_editor_prompt_to_save_changes) : + do eab_editor_is_valid check only when user wants to save. + 2004-03-24 Chris Toshok * gui/component/addressbook-component.c diff --git a/addressbook/gui/contact-editor/eab-editor.c b/addressbook/gui/contact-editor/eab-editor.c index 6bba65c0e1..354044a607 100644 --- a/addressbook/gui/contact-editor/eab-editor.c +++ b/addressbook/gui/contact-editor/eab-editor.c @@ -250,16 +250,15 @@ eab_editor_get_window (EABEditor *editor) gboolean eab_editor_prompt_to_save_changes (EABEditor *editor, GtkWindow *window) { - if (!eab_editor_is_valid (editor)) { - /* XXX pop up dialog about things being invalid */ - return FALSE; - } - if (!eab_editor_is_changed (editor)) return TRUE; switch (eab_prompt_save_dialog (window)) { case GTK_RESPONSE_YES: + if (!eab_editor_is_valid (editor)) { + /* XXX pop up dialog about things being invalid */ + return FALSE; + } eab_editor_save_contact (editor, FALSE); return TRUE; case GTK_RESPONSE_NO: -- cgit v1.2.3