mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 21:29:50 +02:00
IDE: Prevent an occasional crash after BuildModes are added and deleted.
git-svn-id: trunk@52628 -
This commit is contained in:
parent
cf8074ffe7
commit
865cb9dc42
@ -5082,7 +5082,8 @@ end;
|
||||
|
||||
procedure TProject.SetActiveBuildMode(const AValue: TProjectBuildMode);
|
||||
begin
|
||||
if FActiveBuildMode=AValue then exit;
|
||||
// Must be set even if FActiveBuildMode=AValue. Modes may be added and deleted,
|
||||
// the same old address can be used by a new mode.
|
||||
FActiveBuildMode:=AValue;
|
||||
if FActiveBuildMode<>nil then
|
||||
FLazCompilerOptions:=FActiveBuildMode.CompilerOptions
|
||||
|
Loading…
Reference in New Issue
Block a user