-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 2.6.0
-
None
-
2b3bc1fa33003b208c94768413a5515176e13e5b
- Open the find toolbar
- Type "foobar", press return, "foobaz", return, "foobug", return
- Now type "f", choose the third entry (foobar) and press return.
Cursor will jump to first occurrence of "foobar", but the text in the toolbar is changed to foobaz (and pressing return again will find foobaz instead of foobar).
I tried to investigate this a bit, and found out that the cause for this is that the QStringListModel is updated when the search is initiated, so the selected text becomes first, but the current selected entry is not updated accordingly, so the "new" third value (foobaz) replaces the old one (foobar).