diff options
| author | Ansariel Hiller <Ansariel@users.noreply.github.com> | 2024-07-27 17:10:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-27 18:10:17 +0300 |
| commit | fceec45641cf6a4b7eecaf37ea080a184c279239 (patch) | |
| tree | 476463c04099eefef6d2145d9b081f0e25b03683 /indra/newview/llpanelgroup.cpp | |
| parent | a1bdef0c159ca2ebf5f2d985d56a541101e3bf6a (diff) | |
Fix a bunch of XUI warnings (#2120)
Diffstat (limited to 'indra/newview/llpanelgroup.cpp')
| -rw-r--r-- | indra/newview/llpanelgroup.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index 3db0f90df8..079a5583d4 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -167,8 +167,6 @@ bool LLPanelGroup::postBuild() mButtonRefresh = getChild<LLButton>("btn_refresh"); mButtonRefresh->setClickedCallback(onBtnRefresh, this); - mButtonCancel = getChild<LLButton>("btn_cancel"); - mGroupNameCtrl = getChild<LLUICtrl>("group_name"); childSetCommitCallback("back",boost::bind(&LLPanelGroup::onBackBtnClick,this),NULL); @@ -214,18 +212,8 @@ void LLPanelGroup::reposButton(LLButton* button) void LLPanelGroup::reposButtons() { - if(mButtonRefresh && mButtonCancel && mButtonRefresh->getVisible() && mButtonCancel->getVisible()) - { - LLRect btn_refresh_rect = mButtonRefresh->getRect(); - LLRect btn_cancel_rect = mButtonCancel->getRect(); - btn_refresh_rect.setLeftTopAndSize( btn_cancel_rect.mLeft + btn_cancel_rect.getWidth() + 2, - btn_refresh_rect.getHeight() + 2, btn_refresh_rect.getWidth(), btn_refresh_rect.getHeight()); - mButtonRefresh->setRect(btn_refresh_rect); - } - reposButton(mButtonApply); reposButton(mButtonRefresh); - reposButton(mButtonCancel); reposButton(mButtonChat); reposButton(mButtonCall); } @@ -376,9 +364,6 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) if(mButtonRefresh) mButtonRefresh->setVisible(!is_null_group_id); - if(mButtonCancel) - mButtonCancel->setVisible(!is_null_group_id); - if(mButtonCall) mButtonCall->setVisible(!is_null_group_id); if(mButtonChat) |
