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 begin
if AOptions=EducationOptions then begin if AOptions=EducationOptions then begin
EducationOptions.Enabled:=EnableCheckBox.Checked; EducationOptions.Enabled:=EnableCheckBox.Checked;
if EducationOptions.Save<>mrOk then
DebugLn(['TEduEnvFrame.WriteSettings Failed']);
end; end;
end; end;

View File

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