Merge pull request #1406 from Azaezel/alpha41/crashfix

fix another potential crash with firstresponder code
This commit is contained in:
Brian Roberts 2025-03-06 23:33:00 -06:00 committed by GitHub
commit 3b39d74f57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,7 @@ void GuiInspectorField::setFirstResponder( GuiControl *firstResponder )
{ {
Parent::setFirstResponder( firstResponder ); Parent::setFirstResponder( firstResponder );
if (( firstResponder == this || firstResponder == mEdit ) && firstResponder->isProperlyAdded()) if (( firstResponder == this || firstResponder == mEdit ) && (firstResponder && firstResponder->isProperlyAdded()))
{ {
mInspector->setHighlightField( this ); mInspector->setHighlightField( this );
} }