cocoa: identation fix

git-svn-id: trunk@49671 -
This commit is contained in:
sekelsenmat 2015-08-15 06:21:33 +00:00
parent 2d3742cbba
commit 96d3cffb5a

View File

@ -277,30 +277,30 @@ var
ACustForm: TCustomForm;
begin
if not IsActivating then
begin
begin
IsActivating:=True;
ACustForm := Target as TCustomForm;
if (ACustForm.Menu <> nil) and
(ACustForm.Menu.HandleAllocated) then
begin
begin
if NSObject(ACustForm.Menu.Handle).isKindOfClass_(TCocoaMenuItem) then
begin
begin
if TCocoaMenuItem(ACustForm.Menu.Handle).hasSubmenu then
CocoaWidgetSet.SetMainMenu(HMENU(TCocoaMenuItem(ACustForm.Menu.Handle).submenu), ACustForm.Menu)
else
debugln('Warning: Menu does not have a valid handle.');
end
end
else
CocoaWidgetSet.SetMainMenu(ACustForm.Menu.Handle, ACustForm.Menu);
end
end
else
CocoaWidgetSet.SetMainMenu(0, nil);
LCLSendActivateMsg(Target, WA_ACTIVE, false);
LCLSendSetFocusMsg(Target);
IsActivating:=False;
end;
end;
end;
procedure TLCLWindowCallback.Deactivate;