Make sure toplevel is active in SetFocus() under wxQt

wxQt also has the same issue mentioned in this ticket #18783 and is now
fixed the same way wxGTK port fixed it in this commit #44a75af.
This commit is contained in:
ali kettab 2023-10-31 20:58:17 +01:00
parent 4652bb05f8
commit ab21520d7d

View file

@ -492,6 +492,9 @@ void wxWindowQt::DoEnable(bool enable)
void wxWindowQt::SetFocus()
{
if ( !GetHandle()->isActiveWindow() )
GetHandle()->activateWindow();
GetHandle()->setFocus();
}