Qt: pass mouse wheel events if control is disabled. issue #20402

git-svn-id: trunk@32668 -
This commit is contained in:
zeljko 2011-10-04 10:20:12 +00:00
parent ee8e6dfd3e
commit a21a345ffc

View File

@ -3065,11 +3065,7 @@ var
ModifierState: PtrInt;
begin
Result := False;
if not CanSendLCLMessage then
exit;
if (LCLObject <> nil) and
(not (csDesigning in LCLObject.ComponentState) and not getEnabled) then
if not CanSendLCLMessage or (LCLObject = nil) then
exit;
FillChar(Msg, SizeOf(Msg), #0);