diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-01-12 20:01:10 +0200 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-01-12 20:01:10 +0200 |
commit | 1f5e82e14023268a2d1b3076a6e788e37b2ddfdc (patch) | |
tree | 8eaf73c496230cdaf6a029ff6ae73a4934290915 /indra/newview/llfloatergroups.cpp | |
parent | 628b892a66023ec8eea4241977a64a5b86108774 (diff) |
Partially fixed major bug EXT-4112 ([BSI] Number of groups not limited to 25).
Viewer now disallows joining or creating groups if the limit reached.
A server-side fix is also needed.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llfloatergroups.cpp')
-rw-r--r-- | indra/newview/llfloatergroups.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/indra/newview/llfloatergroups.cpp b/indra/newview/llfloatergroups.cpp index 7cb925bc0b..29f415bd43 100644 --- a/indra/newview/llfloatergroups.cpp +++ b/indra/newview/llfloatergroups.cpp @@ -247,14 +247,7 @@ void LLPanelGroups::enableButtons() childDisable("IM"); childDisable("Leave"); } - if(gAgent.mGroups.count() < MAX_AGENT_GROUPS) - { - childEnable("Create"); - } - else - { - childDisable("Create"); - } + childSetEnabled("Create", gAgent.canJoinGroups()); } |