Fix tab labels for profile picks randomly showing the wrong text

meow-7.2.2
Ansariel 2015-07-08 14:07:10 +02:00
parent 26e07ee5c4
commit 7e282d9dd9
1 changed files with 2 additions and 2 deletions

View File

@ -1364,7 +1364,6 @@ void FSPanelPick::setSnapshotId(const LLUUID& id)
void FSPanelPick::setPickName(const std::string& name)
{
mPickName->setValue(name);
updateTabLabel(name);
}
const std::string FSPanelPick::getPickName()
@ -1663,7 +1662,8 @@ void FSPanelProfilePicks::onClickNewBtn()
mTabContainer->addTabPanel(
LLTabContainer::TabPanelParams().
panel(pick_panel).
select_tab(true));
select_tab(true).
label(pick_panel->getPickName()));
mNewButton->setEnabled(canAddNewPick());
mDeleteButton->setEnabled(canDeletePick());
}