Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.0.0-beta
-
None
-
Windows 8.1 x64, qt-windows-opensource-5.2.0-rc1-msvc2012_opengl-x86_64-offline_2013-11-14_10-31-44-150
Description
Steps to reproduce
- Create/Open a project
- Open a .h file that's #included in many places
- Insert a syntax error into the .h file and save
- Click "Run"
- 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:
- Create a new "Qt Widgets Application" from the wizard
- 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)
- Click "Build Project"
- 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
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-10945 Breakpoint icon disappears after switching kits
- Closed