mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 03:59:31 +02:00
sparta: prevent crashing when a TMainMenu is detached (issue #32194).
git-svn-id: trunk@55582 -
This commit is contained in:
parent
7a619b7316
commit
0e58bb1477
@ -670,6 +670,7 @@ var
|
||||
begin
|
||||
Result := False;
|
||||
if (FDesignedForm<>nil) and (FDesignedForm.Form.Menu<>nil)
|
||||
and not (csDestroying in FDesignedForm.Form.Menu.ComponentState)
|
||||
and (FDesignedForm.Form.Menu.Items.Count>0)
|
||||
then
|
||||
for I := 0 to FDesignedForm.Form.Menu.Items.Count-1 do
|
||||
|
Loading…
Reference in New Issue
Block a user