EXT-7106 FIX remove multiply binding for switch tab callback

Reviwed by V.Savchuk at https://codereview.productengine.com/secondlife/r/361/

--HG--
branch : product-engine
meow-7.2.2
Yuri Chebotarev 2010-05-07 19:03:58 +03:00
parent 78b3419fc8
commit 321b4a313b
1 changed files with 2 additions and 2 deletions

View File

@ -145,8 +145,6 @@ BOOL LLPanelGroupRoles::postBuild()
llwarns << "Invalid subtab panel: " << panel->getName() << llendl;
return FALSE;
}
// Add click callbacks to all the tabs.
mSubTabContainer->setCommitCallback(boost::bind(&LLPanelGroupRoles::handleClickSubTab, this));
// Hand the subtab a pointer to this LLPanelGroupRoles, so that it can
// look around for the widgets it is interested in.
@ -155,6 +153,8 @@ BOOL LLPanelGroupRoles::postBuild()
//subtabp->addObserver(this);
}
// Add click callbacks to all the tabs.
mSubTabContainer->setCommitCallback(boost::bind(&LLPanelGroupRoles::handleClickSubTab, this));
// Set the current tab to whatever is currently being shown.
mCurrentTab = (LLPanelGroupTab*) mSubTabContainer->getCurrentPanel();