Hide group voting tab on secondlife, it is no longer used there.

This commit is contained in:
Liru Færs
2020-02-25 03:27:06 -05:00
parent 379f97e15a
commit e78061b077

View File

@@ -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