Author Topic: Minor issue: Filename for new project not updated  (Read 4851 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Minor issue: Filename for new project not updated
« on: April 10, 2006, 01:28:51 pm »
I found an issue that a filename is not correctly registered within a new project if it is asked to be renamed. Here are the steps to reproduce:
1.) Create a new console project; choose e.g. the Desktop as target folder. Call the application "MyApp" which will create a sub-folder "MyApp" on the desktop that contains "main.cpp".
2.) Close C::B and rename the folder "MyApp" to e.g. "AnotherApp".
3.) Open C::B again and open the project "MyApp" from within the folder "AnotherApp".
4.) Open the main file of that project (main.cpp).
5.) Create a new console project, call it "AnotherApp". Choose again the Desktop as target. C::B will tell you that this folder already exists and will ask if this is ok. Click "yes". Now C::B will tell you that the main file (main.cpp) already exists and ask you to save it under another name. Choose for this name e.g. "main_app.cpp". Once you click OK you'll notice that not "main_app.cpp" is associated with the new (the second) project, but still "main.cpp". If you double-click on "main.cpp" in the second project to open the file, then main.cpp from the first project will be opened. Anyway: The "main_app.cpp" has been correctly created.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Minor issue: Filename for new project not updated
« Reply #1 on: April 10, 2006, 01:46:37 pm »
Hello Morton,

Could you post this as a bug report, and feel free to assign it to me, i will fix this later on this week.

Cheers,
Lieven

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Minor issue: Filename for new project not updated
« Reply #2 on: April 10, 2006, 02:09:27 pm »
Could you post this as a bug report, and feel free to assign it to me, i will fix this later on this week.
Done (Bug #7099). I actually had in mind to take a look myself... I'll keep you informed if I am able to do something.
Thanks in advance anyway.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ