mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 10:59:20 +02:00
Qt: fixed crash with MDI child
git-svn-id: trunk@33333 -
This commit is contained in:
parent
822a4db073
commit
bfc0d54628
@ -595,7 +595,7 @@ begin
|
||||
Msg.msg := LM_SETFOCUS;
|
||||
Msg.wParam := PtrInt(OldWidget);
|
||||
if (NewWidget is TQtMainWindow) and (TQtMainWindow(NewWidget).IsMdiChild) then
|
||||
TQtMainWindow(OldWidget).SlotActivateWindow(True)
|
||||
TQtMainWindow(NewWidget).SlotActivateWindow(True)
|
||||
else
|
||||
NewWidget.DeliverMessage(Msg);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user