diff options
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: |