diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-03-25 17:19:11 +0200 |
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-03-25 17:19:11 +0200 |
| commit | 458d318aebd7a7da8ea2c594b8df2f285f7efded (patch) | |
| tree | 48e8d74ee4af28c53680a42975a81cead45f4f1f /indra/newview/llpanelprofile.cpp | |
| parent | e0b24ee960c7a7eebb9e7d6e4b5974973eb3da00 (diff) | |
SL-10804 [Legacy Profiles] Second Life tab block button size and focus
Diffstat (limited to 'indra/newview/llpanelprofile.cpp')
| -rw-r--r-- | indra/newview/llpanelprofile.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 3a772a8104..4933b0d25e 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -276,8 +276,8 @@ BOOL LLPanelProfileSecondLife::postBuild() mTeleportButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::onTeleportButtonClick, this)); mShowOnMapButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::onMapButtonClick, this)); mPayButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::pay, this)); - mBlockButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::toggleBlock,this)); - mUnblockButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::toggleBlock,this)); + mBlockButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::onClickToggleBlock, this)); + mUnblockButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::onClickToggleBlock, this)); mGroupInviteButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::onGroupInvite,this)); mDisplayNameButton->setCommitCallback(boost::bind(&LLPanelProfileSecondLife::onClickSetName, this)); @@ -519,11 +519,20 @@ void LLPanelProfileSecondLife::pay() LLAvatarActions::pay(getAvatarId()); } -void LLPanelProfileSecondLife::toggleBlock() +void LLPanelProfileSecondLife::onClickToggleBlock() { - LLAvatarActions::toggleBlock(getAvatarId()); + bool blocked = LLAvatarActions::toggleBlock(getAvatarId()); updateButtons(); + // we are hiding one button and showing another, set focus + if (blocked) + { + mUnblockButton->setFocus(true); + } + else + { + mBlockButton->setFocus(true); + } } void LLPanelProfileSecondLife::onAddFriendButtonClick() |
