IDE: fixed compileroptions GetModified

git-svn-id: trunk@27803 -
This commit is contained in:
mattias 2010-10-21 20:55:28 +00:00
parent ad2142ef86
commit 2a26e6b67f
2 changed files with 5 additions and 2 deletions

View File

@ -972,7 +972,7 @@ begin
if not CheckPutSearchPath('debugger search path',OldPath,Options.GetDebugPath(false)) then
exit(false);
// ToDo: will be replaced by buildmodes
// ToDo: will be replaced by build macro
i:=LCLWidgetTypeComboBox.Itemindex;
if i<=0 then
Options.LCLWidgetType:=''
@ -1154,6 +1154,7 @@ begin
finally
if not Result then begin
Options.Assign(OldCompOpts);
Options.Modified:=OldCompOpts.Modified;
end;
end;
end;

View File

@ -1815,7 +1815,8 @@ end;
function TLazCompilerOptions.GetModified: boolean;
begin
Result:=FSavedChangeStamp=FChangeStamp;
Result:=(FSavedChangeStamp=InvalidChangeStamp)
or (FSavedChangeStamp=FChangeStamp);
end;
constructor TLazCompilerOptions.Create(const TheOwner: TObject);
@ -1823,6 +1824,7 @@ begin
inherited Create;
fOnChanged:=TMethodList.Create;
FChangeStamp:=InvalidChangeStamp;
FSavedChangeStamp:=FChangeStamp;
FOwner := TheOwner;
end;