Suiun / cnpack

Automatically exported from code.google.com/p/cnpack
0 stars 0 forks source link

Proposed Bugfix for CnProjectViewBaseFrm for selection between all or currenct project. #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Unit List of Project Group;
2. Select Project <All> in combobox;
3. Select a unit or close;
4. Open Unit List again. All is fine;
5. Close it (don't touch the project combobox!!);
6. Open Unit List again. <Currenct Project> is now selected!

What is the expected output? What do you see instead?
The <All> should remain selected at step 6.

What version of the product are you using? On what operating system?
Fails on all versions...

Please provide any additional information below.
To fix this problem line 492 of CnProjectViewBaseFrm.pas must be updated so 
that FProjectListSelectedAllProject is initialised correctly:

Old code snippet:
procedure TCnProjectViewBaseForm.LoadProjectSettings(Ini:TCustomIniFile; 
aSection: string);
begin
  with Ini do
  begin
    if ReadBool(aSection, csCurrentPrj, False) then
    begin

New code snippet:
procedure TCnProjectViewBaseForm.LoadProjectSettings(Ini:TCustomIniFile;
aSection: string);
begin
  with Ini do
  begin
    FProjectListSelectedAllProject := (not ReadBool(aSection, csCurrentPrj, False));
    if not FProjectListSelectedAllProject then
    begin

Original issue reported on code.google.com by dekleine...@gmail.com on 3 Nov 2012 at 1:40

GoogleCodeExporter commented 8 years ago
Thanks. We'll check this change.

Original comment by liuxiaos...@gmail.com on 6 Nov 2012 at 2:03