From d7897000403d6ec0f23676d46e621af2894a2b26 Mon Sep 17 00:00:00 2001 From: Drake Arconis <drake@alchemyviewer.org> Date: Fri, 7 Aug 2015 05:05:56 -0400 Subject: [PATCH] Display registration and forgotten password links if avaliable --- indra/newview/llpanellogin.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 3196e391e1..b2baff02f7 100755 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -918,13 +918,10 @@ void LLPanelLogin::updateServer() sInstance->setFields(credential, remember); } - // update the login panel links - bool system_grid = LLGridManager::getInstance()->isSystemGrid(); - // Want to vanish not only create_new_account_btn, but also the // title text over it, so turn on/off the whole layout_panel element. - sInstance->getChild<LLLayoutPanel>("links")->setVisible(system_grid); - sInstance->getChildView("forgot_password_text")->setVisible(system_grid); + sInstance->getChild<LLLayoutPanel>("links")->setVisible(!LLGridManager::getInstance()->getCreateAccountURL().empty()); + sInstance->getChildView("forgot_password_text")->setVisible(!LLGridManager::getInstance()->getForgotPasswordURL().empty()); // grid changed so show new splash screen (possibly) loadLoginPage(); -- GitLab