diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llpanel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llui/llpanel.cpp b/linden/indra/llui/llpanel.cpp index 9e444c1..f0b5b25 100644 --- a/linden/indra/llui/llpanel.cpp +++ b/linden/indra/llui/llpanel.cpp | |||
@@ -362,7 +362,7 @@ BOOL LLPanel::handleKeyHere( KEY key, MASK mask, BOOL called_from_parent ) | |||
362 | // If we have a default button, click it when | 362 | // If we have a default button, click it when |
363 | // return is pressed, unless current focus is a return-capturing button | 363 | // return is pressed, unless current focus is a return-capturing button |
364 | // in which case *that* button will handle the return key | 364 | // in which case *that* button will handle the return key |
365 | if (!(cur_focus->getWidgetType() == WIDGET_TYPE_BUTTON && static_cast<LLButton *>(cur_focus)->getCommitOnReturn())) | 365 | if (cur_focus && !(cur_focus->getWidgetType() == WIDGET_TYPE_BUTTON && static_cast<LLButton *>(cur_focus)->getCommitOnReturn())) |
366 | { | 366 | { |
367 | // RETURN key means hit default button in this case | 367 | // RETURN key means hit default button in this case |
368 | if (key == KEY_RETURN && mask == MASK_NONE | 368 | if (key == KEY_RETURN && mask == MASK_NONE |