Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 10.0.0
-
None
-
Arch Linux installed from Arch package repository
macOS installed from binary installer
-
a37b0f0e6 (10.0)
Description
Attempting to use Switch Header/Source from a .h file to a corresponding .c file fails in the following situation:
- A project is a mix of .c and .cpp files.
- The header and source are in different folders.
- The source file is a .c file.
To reproduce:
- Download test.tar.gz
and open in Qt Creator.
- Open src/TestFile.c
- Invoke Switch Header/Source, the editor will switch to include/TestFile.h.
- Invoke Switch Header/Source again, the editor will NOT switch back to src/TestFile.c.
Functionality will be restored if:
- Main.cpp is changed to Main.c, making "test" a C-only project.
- include/TestFile.h is moved to the src directory, so the .c and .h files are in the same directory.
- TestFile.c is changed to TestFile.cpp.