[evolution-data-server] Bug #627937 - Crash on email Add to a contact list



commit 7a1de9c80749236941423a4d5a95f5ec5b170d26
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 25 15:22:49 2010 +0200

    Bug #627937 - Crash on email Add to a contact list

 libedataserverui/e-name-selector-entry.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libedataserverui/e-name-selector-entry.c b/libedataserverui/e-name-selector-entry.c
index 14bee5f..7edf7fb 100644
--- a/libedataserverui/e-name-selector-entry.c
+++ b/libedataserverui/e-name-selector-entry.c
@@ -1273,9 +1273,10 @@ user_insert_text (ENameSelectorEntry *name_selector_entry, gchar *new_text,
 		gtk_editable_insert_text (
 			GTK_EDITABLE (name_selector_entry),
 			new_text, new_text_length, position);
-		post_insert_update (name_selector_entry, *position);
 
 		chars_inserted = *position - old_position;
+		if (chars_inserted > 0)
+			post_insert_update (name_selector_entry, *position);
 
 	/* Otherwise, apply some rules as to where spaces and commas
 	 * can be inserted, and insert a trailing space after comma. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]