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

Multiple copies of a document are opened from the "Issues" pane

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.0.0-beta
    • Editors
    • None
    • Windows 8.1 x64, qt-windows-opensource-5.2.0-rc1-msvc2012_opengl-x86_64-offline_2013-11-14_10-31-44-150

      Steps to reproduce

      1. Create/Open a project
      2. Open a .h file that's #included in many places
      3. Insert a syntax error into the .h file and save
      4. Click "Run"
      5. In the "Issues" pane, double-click every instance of the error message

      Actual Result
      For every instance of the error message, Qt Creator will open one instance of the .h file (in addition to the copy opened in Step #2)

      Expected Outcome
      Instead of opening new copies, Qt Creator should give focus to the copy that's already open, and navigate to the error line

      EDIT: 2013-11-26
      I've attached screenshots comparing Qt Creator 2.8 (correct behaviour) and Qt Creator 3.0 (multiple editors). Here's what I did:

      1. Create a new "Qt Widgets Application" from the wizard
      2. Modify widget.h (which is included in both main.cpp and widget.cpp), to introduce a syntax error at line 16, and save (see screenshot)
      3. Click "Build Project"
      4. Double-click on the first line in the "Issues" pane

      Notes/Observations:

      • After Step #4, there are now 2 copies of widget.h open in Creator 3.0, but 1 copy in Creator 2.8
      • Creator 3.0's 1st copy shows a green bar line #16 to indicate a saved change
      • Creator 3.0's 2nd copy shows a red icon at line #16 to indicate the error
      • Creator 2.8's only copy shows the green bar and red icon together
      • In Creator 3.0, if I click between the 2 copies under "Open Documents" pane, the active editor pane will toggle between the green bar and the red icon

        1. creator2.8.png
          92 kB
          Sze Howe Koh
        2. creator3.0-dup.png
          98 kB
          Sze Howe Koh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes