Bug #6585 2006-02-26 11:30

kkez

Changing the project's name doesn't change CB's title

As title, the title bar is not updated when changing a projects' name.

Category
Application::WrongBehaviour
Group
 
Status
Closed
Close date
2006-02-26 22:14
Assigned to
 
killerbot 2006-02-26 21:04

How did you change the project's name ??

kkez 2006-02-26 21:09

As far as i know, the only way to change it is from the project's properties... and that's what i did.

ID_24639 2006-02-26 21:54

I can confirm. Right click on project select properties, change the project name, get the bug above. Alternatively Project -> Properties gets you to the same place AFAIK. :)

killerbot 2006-02-26 22:08

Allright I can confirm, I have already fixed it on my pc, but for now it is a 2 step process (and this also applies when a new project from a template is constructed), let me first explain this template issue :

1) create new project from template (eg console app) :

from within the CB code there will be 2 paths leading to the code that changes the title bar

- once on Project new (this one will say : start here [console application] ...

REASON : as can be seen also from the cbp file, the cbp file still is uequal to the template cbp, that means that console app title, and no units

- once on ProjectLoad : cbp file is still as above, and now the start page has been closed, so the title only says the [console application] ...

SO also in this case, our nice little project title we specified is not shown.

But when I save the project, the cbp file will contain all the correct inf (our title, units, ...) BUT the title bar does not follow

-> Solution : OnProjectSave ... also update title bar (this fix works, tried it out)

Now back to the mentioned problem :

Project is open, and change project name, nothing happens, also the cbp file is not updated !! Save project, cbp file is updated BUT titlebar does not follow. With my fix, the titlebar will follow.

So things will be better with my fix : the main question remains, when should a cbp file be saved :

- when the user says so (or just vefore compile ...), just like when the user changes a source file, as long as he does not save explicitly the contents does not make it to the harddisk file (unless compile , ...), so according to this behaviour the job is done with my fix

- the moment the project changes (like when loaded from copy of template, or when a setting has changed (could be compiler setting or the project title)

I think there are arguments for both, but for the moment I'll stick to the consistency (so option 1).

Good news : my fix fixes the bug ;-)

Problem solved.

killerbot 2006-02-26 22:14

oh yes : fixed in rev 2086