aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor/eab-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/contact-editor/eab-editor.c')
-rw-r--r--addressbook/gui/contact-editor/eab-editor.c4
1 files changed, 3 insertions, 1 deletions
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: