Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.6.0-beta1
-
Ubuntu 15.10 64 bit
-
1323956f592a48c68b7684a83329e4ca241cee8b
Description
- Create a new Qt Widgets Application project.
- Open the project's main.cpp.
- At the beginning of the file, insert the attached header. It's taken from an old example project.
- Save and close all files.
- Right-click on main.cpp in Projects view and rename it to "test".
It moves to "Other files" (QTCREATORBUG-14469). - Oops, wrong file name. Rename it back to "main.cpp".
The file moves back to "Sources" - Oops, now this was wrong. Rename it to "test" again.
Now the file is gone.
Creator should not lose track of files during renaming. In addition, whatever happens during renaming should always be the same. Having different reactions to the same actions is broken behavior.
In Creator 3.5, this used to work correctly.
Found by Squish test tst_rename_file
Attachments
Issue Links
- relates to
-
QTCREATORBUG-10179 Regression: Inconsistent behavior when renaming cpp-file
- Open
-
QTCREATORBUG-14469 [REG 3.4.0 -> 3.4.1] "Rename..." moves file from HEADERS to DISTFILES when removing suffix
- Closed