mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 20:41:21 +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);
|
procedure TProject.SetActiveBuildMode(const AValue: TProjectBuildMode);
|
||||||
begin
|
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;
|
FActiveBuildMode:=AValue;
|
||||||
if FActiveBuildMode<>nil then
|
if FActiveBuildMode<>nil then
|
||||||
FLazCompilerOptions:=FActiveBuildMode.CompilerOptions
|
FLazCompilerOptions:=FActiveBuildMode.CompilerOptions
|
||||||
|
Loading…
Reference in New Issue
Block a user