From 4b4309bc21d37aa1c76f9ba6249de122cb54fa98 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 22 Jun 2004 18:22:37 +0000 Subject: don't set the changed flag unless we actually add something. 2004-06-22 Larry Ewing * gui/contact-list-editor/e-contact-list-editor.c (add_email_cb): don't set the changed flag unless we actually add something. svn path=/trunk/; revision=26451 --- addressbook/gui/contact-list-editor/e-contact-list-editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/contact-list-editor') diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index 80d5b6c660..b5dca4ef74 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -767,12 +767,12 @@ add_email_cb (GtkWidget *w, EContactListEditor *editor) /* Skip to the end of the list */ if (adj->upper - adj->lower > adj->page_size) gtk_adjustment_set_value (adj, adj->upper); + + editor->changed = TRUE; + } gtk_entry_set_text (GTK_ENTRY(editor->email_entry), ""); - - editor->changed = TRUE; - command_state_changed (editor); } -- cgit v1.2.3