Bug 247552

Summary: Combo box auto completion does not get unselected.
Product: [Unmaintained] kdelibs Reporter: Hugo Parente Lima <hugo.pl>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.1
Sentry Crash Report:

Description Hugo Parente Lima 2010-08-12 19:38:18 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

- Open kate, kwrite, whatever.
- Hit CTRL+O to open the file dialog.
- In the file name field type "/ho"
- type the down key to get the auto completion, so now the name field have "/home/"
- Start typing your username, the combo box still with the selection (bug), so you CAN'T use the autocompletion again, pressing the down key does nothing and pressing ENTER erase the entire text field.

This is a regression, it worked on kde4.4, with this bug auto the auto completion is useless, because I need to use the mouse to auto complete the sentence.

Reproducible: Always

Steps to Reproduce:
See details
Comment 1 David Faure 2010-08-16 22:49:31 UTC
SVN commit 1164472 by dfaure:

Unselect the current item when setting new completion items, if it is nowhere in the new items.
Regression introduced in r1121183. Unittested now, won't happen again ;)
FIXED-IN: 4.5.1
Thanks for the precise bug report.
BUG: 247552


 M  +19 -8     tests/klineedit_unittest.cpp  
 M  +3 -2      widgets/klineedit.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1164472