mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 00:20:13 +02:00
Qt: fixed type cast which caused immediate crash of qtlcl when assigning PtrUInt to WParam.
git-svn-id: trunk@27792 -
This commit is contained in:
parent
81a1b83ec1
commit
1bc2a1db55
@ -575,14 +575,14 @@ begin
|
||||
begin
|
||||
//WriteLn('KILL: ', OldWidget.LCLObject.ClassName);
|
||||
Msg.msg := LM_KILLFOCUS;
|
||||
Msg.wParam := PtrUInt(NewWidget);
|
||||
Msg.wParam := PtrInt(NewWidget);
|
||||
OldWidget.DeliverMessage(Msg);
|
||||
end;
|
||||
if NewWidget <> nil then
|
||||
begin
|
||||
//WriteLn('SET: ', NewWidget.LCLObject.ClassName);
|
||||
Msg.msg := LM_SETFOCUS;
|
||||
Msg.wParam := PtrUInt(OldWidget);
|
||||
Msg.wParam := PtrInt(OldWidget);
|
||||
NewWidget.DeliverMessage(Msg);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user