From e78061b0778cd10232c89349a7f3d4df5dd03ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Tue, 25 Feb 2020 03:27:06 -0500 Subject: [PATCH] Hide group voting tab on secondlife, it is no longer used there. --- indra/newview/llpanelgroup.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index cbd6dce62..56e61a559 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -56,6 +56,8 @@ #include "llpanelgrouplandmoney.h" #include "llpanelgroupexperiences.h" +#include "hippogridmanager.h" + // static void* LLPanelGroupTab::createTab(void* data) { @@ -212,6 +214,14 @@ BOOL LLPanelGroup::postBuild() if (mTabContainer) { + // Group Voting no longer exists on SecondLife, hide it + if (gHippoGridManager->getConnectedGrid()->isSecondLife()) + { + auto panel = mTabContainer->getPanelByName("voting_tab"); + mTabContainer->removeTabPanel(panel); + delete panel; + } + //our initial tab selection was invalid, just select the //first tab then or default to selecting the initial //selected tab specified in the layout file