Bug 323273

Summary: Address completion in the composer scrolls back to top when new results come in
Product: [Applications] kmail2 Reporter: Thiago Macieira <thiago>
Component: contact completionAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: minor CC: dvratil, kdenis, marc+bugs, montel
Priority: NOR    
Version: 5.3.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thiago Macieira 2013-08-07 22:37:30 UTC
When you're selecting an address match in the composer window (e.g., from an LDAP query) and more results come in, the drop-down selection resets back to the top. This is a surprise factor.

Reproducible: Sometimes

Steps to Reproduce:
1. Configure KMail for at least two LDAP servers, preferably with very different reply delays
2. Start typing something that will match results from both servers
3. When the first results come in, press the Down key a couple of times to select a result
4. Wait for new results to come in
Actual Results:  
When new results come in, the selection is reset back to the top

Expected Results:  
The selection should not change, despite more results being added

Though minor, if you're not careful you might end up sending an email to someone who wasn't the destination, since the selection moved right as you were pressing Enter.
Comment 1 Denis Kurz 2016-09-24 18:02:02 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 2 Thiago Macieira 2016-09-24 18:11:14 UTC
Confirming it on KMail 5.3.0, Frameworks 5.26.0, Qt 5.6.1, on OpenSUSE Tumbleweed.

As late as last week, I sent an email to someone who wasn't the intended target because the list populated someone else's address where I had selected.