educationlaz: fixed saving after colleting values from frames

git-svn-id: trunk@24821 -
This commit is contained in:
mattias 2010-04-22 17:23:53 +00:00
parent 700c6e51b2
commit 971b487b42
2 changed files with 4 additions and 2 deletions

View File

@ -118,8 +118,6 @@ procedure TEduEnvFrame.WriteSettings(AOptions: TAbstractIDEOptions);
begin
if AOptions=EducationOptions then begin
EducationOptions.Enabled:=EnableCheckBox.Checked;
if EducationOptions.Save<>mrOk then
DebugLn(['TEduEnvFrame.WriteSettings Failed']);
end;
end;

View File

@ -399,6 +399,7 @@ function TEduOptions.SaveToFile(Filename: string): TModalResult;
var
Config: TConfigStorage;
begin
//DebugLn(['TEduOptions.SaveToFile ',Filename]);
Config:=GetIDEConfigStorage(Filename,false);
try
Result:=Save(Config);
@ -428,11 +429,14 @@ end;
procedure TEduOptions.DoAfterWrite;
begin
inherited DoAfterWrite;
if EducationOptions.Save<>mrOk then
DebugLn(['TEduOptions.DoAfterWrite Failed']);
Apply;
end;
procedure TEduOptions.Apply;
begin
//DebugLn(['TEduOptions.Apply ']);
Root.Apply(Enabled);
end;