LCL: do not use cached FPopupMenu pointer but property getter. issue #23336

git-svn-id: trunk@39887 -
This commit is contained in:
zeljko 2013-01-19 08:19:29 +00:00
parent ced57c7fc5
commit 906b5868a0

View File

@ -5627,7 +5627,7 @@ function TWinControl.DoKeyDownBeforeInterface(var Message: TLMKey; IsRecurseCall
begin
Result := False;
// check popup menu
if Assigned(FPopupMenu) and FPopupMenu.IsShortCut(Message) then
if Assigned(PopupMenu) and PopupMenu.IsShortCut(Message) then
Exit(True);
if IsRecurseCall then