Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-8408

Find/Replace completers replace text in line edit with wrong entry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 2.6.1
    • Qt Creator 2.6.0
    • All Other Issues
    • 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).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            orgads Orgad Shaneh
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes