mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
Packager: Prevent a crash on closing package editor during compile. Issue #36432.
git-svn-id: trunk@62871 -
This commit is contained in:
parent
a6e255c463
commit
5af9c69f98
@ -3403,6 +3403,10 @@ begin
|
||||
begin
|
||||
EnvironmentOptions.LastOpenPackages.Remove(LazPackage.Filename);
|
||||
MainIDE.SaveEnvironment;
|
||||
if not CompileBitBtn.Enabled then begin
|
||||
DebugLn(['TPackageEditorForm.CanCloseEditor ', Caption, ' compiling, do not close.']);
|
||||
Result:=mrCancel;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
//debugln(['TPackageEditorForm.CanCloseEditor Result=',dbgs(Result),' ',Caption]);
|
||||
|
Loading…
Reference in New Issue
Block a user