Just close the editor when user presees cancel or closes the editor when

2005-02-25   Sivaiah Nallagatla <snallagatla@novell.com>

        * 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
This commit is contained in:
Sivaiah Nallagatla
2005-02-26 03:09:11 +00:00
committed by Sivaiah Nallagatla
parent 4a971f2e17
commit f21183f498
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2005-02-25 Sivaiah Nallagatla <snallagatla@novell.com>
* 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 <rsushma@novell.com>
* gui/component/addressbook-config.c (addressbook_config_edit_source):

View File

@ -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: