mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-01 00:47:15 +01:00
IDE: fixed compileroptions GetModified
git-svn-id: trunk@27803 -
This commit is contained in:
parent
ad2142ef86
commit
2a26e6b67f
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user