Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
Qt Creator 2.4.0
-
None
Description
When adding a method definition in the .h file,
the right-click menu 'refactor' has the option 'add definition in filename'
This fails when there are multiple files in the project with the same filename.
Refactor uses the wrong .cpp file.
The F4 hotkey works correctly.
The issue occurs whether the other (wrong) file is already open or not.
When doing it the other way around, it works correctly.
Adding a definition in the .cpp first, then selecting
'refactor' - 'add public declaration' uses the correct .h file.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-6792 Insert definition writes definition in wrong file
- Closed