diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 82dc33d0cf..a516cc9cb0 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -153,7 +153,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, LLLineEditor* password_edit(getChild("password_edit")); password_edit->setKeystrokeCallback(onPassKey, this); // STEAM-14: When user presses Enter with this field in focus, initiate login - password_edit->setCommitCallback(boost::bind(&LLPanelLogin::onClickConnect, this)); + //password_edit->setCommitCallback(boost::bind(&LLPanelLogin::onClickConnect, this)); // Not needed because of the global fix below // change z sort of clickable text to be behind buttons sendChildToBack(getChildView("forgot_password_text")); @@ -227,7 +227,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, childSetAction("remove_user_btn", onClickRemove, this); // Remove credentials childSetAction("connect_btn", onClickConnect, this); - getChild("links_login_panel")->setDefaultBtn("connect_btn"); + getChild("login")->setDefaultBtn(findChild("connect_btn")); // manualy find the button with findChild() as setDefaultButton() uses getChild(), which cant be used in a ctor as it makes a dummy instead std::string channel = LLVersionInfo::getChannel(); std::string version = llformat("%s (%d)",