aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-02 07:19:47 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-02 07:19:47 +0000
commit3bbef2f7262d1af7788c20e9ed12bea3dbc40e3b (patch)
treebd2ea1b092f72c1e16d581777be78d894133ff80
parent5b8a6bc3d57abaada0aca36d91dab632fc526fa2 (diff)
'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
-rw-r--r--ChangeLog5
-rw-r--r--src/addr_compl.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 84d5ba0f..bd9b6369 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-02
+
+ * src/addr_compl.c: address_completion_complete_address_in_entry():
+ don't open completion menu if entry equals to the completed address.
+
2010-01-29
* version 3.0.0beta7
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);