Summary: | KHistoryComboBox-addToHistory changes currentText (in some cases) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | Peter Mühlenpfordt <devel> |
Component: | kdeui | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cfeck |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Simple cmake project to demonstrate the bug
Modified version of the demo program |
Description
Peter Mühlenpfordt
2010-01-27 10:19:38 UTC
Created attachment 40283 [details]
Simple cmake project to demonstrate the bug
compile and run the program (cmake .; make)
Three history items are added by default (a, b, c).
Enter e.g. 'd', the currentText will be 'd'.
Enter 'b' after that and the currentText / editline will change to 'a'.
Which Qt version do you use? I cannot reproduce with Qt 4.6, or I did not understand the steps in comment #1. When you say "Enter", do you mean clicking the "Add" button, just typing the letter, or additionally pressing the Enter key? I'm currently using Qt 4.5.2 (running Kubuntu 9.10 with KDE 4.3.2). After starting the test-program: - click in editline and hit backspace-key to clear - hit 'd'-key (without enter-key) - click [Add] - click in editline and hit backspace-key to clear - hit 'b'-key (without enter-key) - click [Add] I'll try it with Qt 4.6 on Kubuntu 10.04 (alpha) the next days. Created attachment 41225 [details]
Modified version of the demo program
Tried it now on KDE 4.4.0 with Qt 4.6.1 - it works here with my first demo program as it should be - something has changed in Qt/KDE.
But the problem is still there in Krusader: it seems, the connection from returnPressed(const QString &) causes the bug (connecting returnPressed() without argument works).
I changed my demo program to show the bug with KDE 4.4/Qt 4.6, too. There is no 'Add' button anymore. Make sure, item 'a' is selected in the drop down list, delete 'a' and enter 'b', press 'Return' and it will change to 'a'.
This bug still exists in Kubuntu 10.10 with KDE 4.5.1 and Qt 4.7.0. This bug still exists in Kubuntu 11.04 with KDE 4.6.2 and Qt 4.7.2. This bug still exists in Kubuntu 11.10 with KDE 4.7.2 and Qt 4.7.2. Can not be reproduced with current KDE/Qt versions. |