mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-21 21:42:31 +02:00
Qt5: proper check for handle
This commit is contained in:
parent
9563473047
commit
dc204837e6
@ -203,7 +203,7 @@ begin
|
||||
FID := nIDEvent;
|
||||
FControl := FindControl(hWnd);
|
||||
FHandle := hWnd;
|
||||
if hWnd <> 0 then
|
||||
if QtWidgetSet.IsValidHandle(hWnd) then
|
||||
begin
|
||||
FWidgetHook := QObject_hook_create(TQtWidget(hWnd).TheObject);
|
||||
QObject_hook_hook_destroyed(FWidgetHook, @signalWidgetDestroyed);
|
||||
|
Loading…
Reference in New Issue
Block a user