diff options
author | Sivaiah Nallagatla <snallagatla@novell.com> | 2004-03-26 12:09:18 +0800 |
---|---|---|
committer | Sivaiah Nallagatla <siva@src.gnome.org> | 2004-03-26 12:09:18 +0800 |
commit | 373a930405e4d2dd867bf8f8f81b9fbde47a9871 (patch) | |
tree | d0c786d6ab4a0bd6b1e589da7ca968b91ef05e13 /addressbook/gui | |
parent | 047bd6e78e58fa139c193b799bf503fb0dd2afee (diff) | |
download | gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.gz gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.zst gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.zip |
do eab_editor_is_valid check only when user wants to save.
2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com>
* 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/contact-editor/eab-editor.c | 9 |
1 files changed, 4 insertions, 5 deletions
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: |