From 3bbef2f7262d1af7788c20e9ed12bea3dbc40e3b Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 2 Feb 2010 07:19:47 +0000 Subject: 't open completion menu if entry equals to the completed address. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2451 ee746299-78ed-0310-b773-934348b2243d --- src/addr_compl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/addr_compl.c') diff --git a/src/addr_compl.c b/src/addr_compl.c index bc2e4817..0cdfb2e3 100644 --- a/src/addr_compl.c +++ b/src/addr_compl.c @@ -778,8 +778,13 @@ static gboolean address_completion_complete_address_in_entry(GtkEntry *entry, if (new) { /* prevent "change" signal */ /* replace_address_in_edit(entry, new, cursor_pos); */ + + /* don't complete if entry equals to the completed address */ + if (ncount == 2 && !strcmp(address, new)) + completed = FALSE; + else + completed = TRUE; g_free(new); - completed = TRUE; } g_free(address); -- cgit v1.2.3