ide: package editor: fixed crash #40424

(cherry picked from commit d04f10985e)
This commit is contained in:
mattias 2023-08-03 07:25:26 +02:00 committed by Maxim Ganetsky
parent ba985a533e
commit baf1a6ad31

View File

@ -813,8 +813,11 @@ begin
SetItem(PkgEditMenuCleanDependencies, @CleanDependenciesMenuItemClick,
Assigned(LazPackage.FirstRequiredDependency), Writable);
end;
PkgEditMenuOpenFile.MenuItem.Caption := OpenItemCapt;
PkgEditMenuOpenFile.MenuItem.Enabled := OpenItemEnable;
if PkgEditMenuOpenFile.MenuItem<>nil then
begin
PkgEditMenuOpenFile.MenuItem.Caption := OpenItemCapt;
PkgEditMenuOpenFile.MenuItem.Enabled := OpenItemEnable;
end;
finally
//PackageEditorMenuRoot.EndUpdate;
SingleSelectedFile := Nil;