fix another potential crash with firstresponder code

This commit is contained in:
AzaezelX 2025-03-06 23:32:38 -06:00
parent 53a87af2b1
commit 79782148ec

View file

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