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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.6.1
    • Qt Creator 2.6.0
    • All Other Issues
    • None
    • 2b3bc1fa33003b208c94768413a5515176e13e5b

    Description

      • 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).

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes