After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561487 - When using keyboard, email address auto-complete selects wrong address
When using keyboard, email address auto-complete selects wrong address
Status: RESOLVED FIXED
Product: nautilus-sendto
Classification: Applications
Component: general
1.1.x
Other Linux
: Normal normal
: ---
Assigned To: nautilus-sendto-maint
nautilus-sendto-maint
Depends on:
Blocks:
 
 
Reported: 2008-11-19 09:56 UTC by Sebastien Bacher
Modified: 2008-12-19 10:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2008-11-19 09:56:07 UTC
the bug has been described on https://bugs.launchpad.net/bugs/294521

"1. Right click -> send to...
2. press TAB (to focus email field)
3. type 'mar' in the email field
4. use arrow keys to select second 'Maria' in the autocomplete list
5. press enter to select the address
6. press enter again to send the file
7. The first address is filled in in Evolution instead of the one I selected."
Comment 1 Bastien Nocera 2008-11-19 10:50:47 UTC
Could you please add debug in "contacts_selected_cb" in src/plugins/evolution.c and print out the identifier selected?
Comment 2 Sebastien Bacher 2008-11-19 14:22:09 UTC
the bug doesn't seem to happen for all contacts but when it does the callback is called once using the correct email when pressing entry in the combo list and an another time when pressing enter to validate the dialog and it's using the wrong email on this one
Comment 3 Sebastien Bacher 2008-11-19 14:26:58 UTC
using enter seems to trigger the signal for the selected text entry and for the send button and the bug seems to be a race between those calls
Comment 4 Marek 2008-12-03 14:23:05 UTC
Can confirm, that clicking “Send” button picks up correct email address, pressing an Enter key while in the email address box, picks up incorrect (first from the drop down) email address.
Comment 5 Bastien Nocera 2008-12-03 17:12:45 UTC
It's a bug in e-contact-entry.
Comment 6 Bastien Nocera 2008-12-17 16:11:59 UTC
This might be enough to fix it, but eds isn't playing ball and crashes randomly for me. Any chance for you to test this?

Index: nautilus-sendto-command.c
===================================================================
--- nautilus-sendto-command.c	(revision 370)
+++ nautilus-sendto-command.c	(working copy)
@@ -411,8 +411,8 @@
 		gtk_widget_hide (GTK_WIDGET(w));
 		ui->contact_widgets = g_list_append (ui->contact_widgets, w);
 		if (GTK_IS_ENTRY (w)) {
-			g_signal_connect (G_OBJECT (w), "activate",
-					G_CALLBACK (send_if_no_pack_cb), ui);
+			g_signal_connect_after (G_OBJECT (w), "activate",
+						G_CALLBACK (send_if_no_pack_cb), ui);
 		}
 	}
 }
Comment 7 Bastien Nocera 2008-12-19 10:10:22 UTC
Closing, reopen the bug if it doesn't fix it.

2008-12-19  Bastien Nocera  <hadess@hadess.net>

        * src/nautilus-sendto-command.c (set_contact_widgets):
        Try to avoid the handlers internal to the plugin not being run 
        on occasions, as they were racing with the "activate" handler
        (Closes: #561487)