diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llpanelgrouproles.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelgrouproles.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/linden/indra/newview/llpanelgrouproles.cpp b/linden/indra/newview/llpanelgrouproles.cpp index 194f880..ccf776f 100644 --- a/linden/indra/newview/llpanelgrouproles.cpp +++ b/linden/indra/newview/llpanelgrouproles.cpp | |||
@@ -61,7 +61,7 @@ bool agentCanRemoveFromRole(const LLUUID& group_id, | |||
61 | bool agentCanAddToRole(const LLUUID& group_id, | 61 | bool agentCanAddToRole(const LLUUID& group_id, |
62 | const LLUUID& role_id) | 62 | const LLUUID& role_id) |
63 | { | 63 | { |
64 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(group_id); | 64 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(group_id); |
65 | if (!gdatap) | 65 | if (!gdatap) |
66 | { | 66 | { |
67 | llwarns << "agentCanAddToRole " | 67 | llwarns << "agentCanAddToRole " |
@@ -414,14 +414,14 @@ void LLPanelGroupRoles::update(LLGroupChange gc) | |||
414 | void LLPanelGroupRoles::activate() | 414 | void LLPanelGroupRoles::activate() |
415 | { | 415 | { |
416 | // Start requesting member and role data if needed. | 416 | // Start requesting member and role data if needed. |
417 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 417 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
418 | //if (!gdatap || mFirstUse) | 418 | //if (!gdatap || mFirstUse) |
419 | { | 419 | { |
420 | // Check member data. | 420 | // Check member data. |
421 | 421 | ||
422 | if (!gdatap || !gdatap->isMemberDataComplete() ) | 422 | if (!gdatap || !gdatap->isMemberDataComplete() ) |
423 | { | 423 | { |
424 | gGroupMgr->sendGroupMembersRequest(mGroupID); | 424 | LLGroupMgr::getInstance()->sendGroupMembersRequest(mGroupID); |
425 | } | 425 | } |
426 | 426 | ||
427 | // Check role data. | 427 | // Check role data. |
@@ -430,19 +430,19 @@ void LLPanelGroupRoles::activate() | |||
430 | // Mildly hackish - clear all pending changes | 430 | // Mildly hackish - clear all pending changes |
431 | cancel(); | 431 | cancel(); |
432 | 432 | ||
433 | gGroupMgr->sendGroupRoleDataRequest(mGroupID); | 433 | LLGroupMgr::getInstance()->sendGroupRoleDataRequest(mGroupID); |
434 | } | 434 | } |
435 | 435 | ||
436 | // Check role-member mapping data. | 436 | // Check role-member mapping data. |
437 | if (!gdatap || !gdatap->isRoleMemberDataComplete() ) | 437 | if (!gdatap || !gdatap->isRoleMemberDataComplete() ) |
438 | { | 438 | { |
439 | gGroupMgr->sendGroupRoleMembersRequest(mGroupID); | 439 | LLGroupMgr::getInstance()->sendGroupRoleMembersRequest(mGroupID); |
440 | } | 440 | } |
441 | 441 | ||
442 | // Need this to get base group member powers | 442 | // Need this to get base group member powers |
443 | if (!gdatap || !gdatap->isGroupPropertiesDataComplete() ) | 443 | if (!gdatap || !gdatap->isGroupPropertiesDataComplete() ) |
444 | { | 444 | { |
445 | gGroupMgr->sendGroupPropertiesRequest(mGroupID); | 445 | LLGroupMgr::getInstance()->sendGroupPropertiesRequest(mGroupID); |
446 | } | 446 | } |
447 | 447 | ||
448 | mFirstUse = FALSE; | 448 | mFirstUse = FALSE; |
@@ -529,23 +529,23 @@ BOOL LLPanelGroupSubTab::postBuild() | |||
529 | bool no_recurse = false; | 529 | bool no_recurse = false; |
530 | 530 | ||
531 | LLIconCtrl* icon = getChild<LLIconCtrl>("power_folder_icon",no_recurse); | 531 | LLIconCtrl* icon = getChild<LLIconCtrl>("power_folder_icon",no_recurse); |
532 | if (icon && icon->getImage().notNull()) | 532 | if (icon && !icon->getImageName().empty()) |
533 | { | 533 | { |
534 | mActionIcons["folder"] = icon->getImage(); | 534 | mActionIcons["folder"] = icon->getImageName(); |
535 | removeChild(icon, TRUE); | 535 | removeChild(icon, TRUE); |
536 | } | 536 | } |
537 | 537 | ||
538 | icon = getChild<LLIconCtrl>("power_all_have_icon",no_recurse); | 538 | icon = getChild<LLIconCtrl>("power_all_have_icon",no_recurse); |
539 | if (icon && icon->getImage().notNull()) | 539 | if (icon && !icon->getImageName().empty()) |
540 | { | 540 | { |
541 | mActionIcons["full"] = icon->getImage(); | 541 | mActionIcons["full"] = icon->getImageName(); |
542 | removeChild(icon, TRUE); | 542 | removeChild(icon, TRUE); |
543 | } | 543 | } |
544 | 544 | ||
545 | icon = getChild<LLIconCtrl>("power_partial_icon",no_recurse); | 545 | icon = getChild<LLIconCtrl>("power_partial_icon",no_recurse); |
546 | if (icon && icon->getImage().notNull()) | 546 | if (icon && !icon->getImageName().empty()) |
547 | { | 547 | { |
548 | mActionIcons["partial"] = icon->getImage(); | 548 | mActionIcons["partial"] = icon->getImageName(); |
549 | removeChild(icon, TRUE); | 549 | removeChild(icon, TRUE); |
550 | } | 550 | } |
551 | 551 | ||
@@ -679,14 +679,14 @@ void LLPanelGroupSubTab::buildActionsList(LLScrollListCtrl* ctrl, | |||
679 | BOOL filter, | 679 | BOOL filter, |
680 | BOOL is_owner_role) | 680 | BOOL is_owner_role) |
681 | { | 681 | { |
682 | if (gGroupMgr->mRoleActionSets.empty()) | 682 | if (LLGroupMgr::getInstance()->mRoleActionSets.empty()) |
683 | { | 683 | { |
684 | llwarns << "Can't build action list - no actions found." << llendl; | 684 | llwarns << "Can't build action list - no actions found." << llendl; |
685 | return; | 685 | return; |
686 | } | 686 | } |
687 | 687 | ||
688 | std::vector<LLRoleActionSet*>::iterator ras_it = gGroupMgr->mRoleActionSets.begin(); | 688 | std::vector<LLRoleActionSet*>::iterator ras_it = LLGroupMgr::getInstance()->mRoleActionSets.begin(); |
689 | std::vector<LLRoleActionSet*>::iterator ras_end = gGroupMgr->mRoleActionSets.end(); | 689 | std::vector<LLRoleActionSet*>::iterator ras_end = LLGroupMgr::getInstance()->mRoleActionSets.end(); |
690 | 690 | ||
691 | for ( ; ras_it != ras_end; ++ras_it) | 691 | for ( ; ras_it != ras_end; ++ras_it) |
692 | { | 692 | { |
@@ -951,7 +951,7 @@ void LLPanelGroupMembersSubTab::handleMemberSelect() | |||
951 | mAssignedRolesList->deleteAllItems(); | 951 | mAssignedRolesList->deleteAllItems(); |
952 | mAllowedActionsList->deleteAllItems(); | 952 | mAllowedActionsList->deleteAllItems(); |
953 | 953 | ||
954 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 954 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
955 | if (!gdatap) | 955 | if (!gdatap) |
956 | { | 956 | { |
957 | llwarns << "LLPanelGroupMembersSubTab::handleMemberSelect() " | 957 | llwarns << "LLPanelGroupMembersSubTab::handleMemberSelect() " |
@@ -1199,14 +1199,14 @@ void LLPanelGroupMembersSubTab::handleEjectMembers() | |||
1199 | 1199 | ||
1200 | mMembersList->deleteSelectedItems(); | 1200 | mMembersList->deleteSelectedItems(); |
1201 | 1201 | ||
1202 | gGroupMgr->sendGroupMemberEjects(mGroupID, | 1202 | LLGroupMgr::getInstance()->sendGroupMemberEjects(mGroupID, |
1203 | selected_members); | 1203 | selected_members); |
1204 | } | 1204 | } |
1205 | 1205 | ||
1206 | void LLPanelGroupMembersSubTab::handleRoleCheck(const LLUUID& role_id, | 1206 | void LLPanelGroupMembersSubTab::handleRoleCheck(const LLUUID& role_id, |
1207 | LLRoleMemberChangeType type) | 1207 | LLRoleMemberChangeType type) |
1208 | { | 1208 | { |
1209 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1209 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1210 | if (!gdatap) return; | 1210 | if (!gdatap) return; |
1211 | 1211 | ||
1212 | //add that the user is requesting to change the roles for selected | 1212 | //add that the user is requesting to change the roles for selected |
@@ -1356,7 +1356,7 @@ void LLPanelGroupMembersSubTab::cancel() | |||
1356 | 1356 | ||
1357 | bool LLPanelGroupMembersSubTab::apply(LLString& mesg) | 1357 | bool LLPanelGroupMembersSubTab::apply(LLString& mesg) |
1358 | { | 1358 | { |
1359 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1359 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1360 | if (!gdatap) | 1360 | if (!gdatap) |
1361 | { | 1361 | { |
1362 | llwarns << "Unable to get group data for group " << mGroupID << llendl; | 1362 | llwarns << "Unable to get group data for group " << mGroupID << llendl; |
@@ -1421,7 +1421,7 @@ void LLPanelGroupMembersSubTab::applyMemberChanges() | |||
1421 | { | 1421 | { |
1422 | //sucks to do a find again here, but it is in constant time, so, could | 1422 | //sucks to do a find again here, but it is in constant time, so, could |
1423 | //be worse | 1423 | //be worse |
1424 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1424 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1425 | if (!gdatap) | 1425 | if (!gdatap) |
1426 | { | 1426 | { |
1427 | llwarns << "Unable to get group data for group " << mGroupID << llendl; | 1427 | llwarns << "Unable to get group data for group " << mGroupID << llendl; |
@@ -1446,7 +1446,7 @@ void LLPanelGroupMembersSubTab::applyMemberChanges() | |||
1446 | } | 1446 | } |
1447 | mMemberRoleChangeData.clear(); | 1447 | mMemberRoleChangeData.clear(); |
1448 | 1448 | ||
1449 | gGroupMgr->sendGroupRoleMemberChanges(mGroupID); | 1449 | LLGroupMgr::getInstance()->sendGroupRoleMemberChanges(mGroupID); |
1450 | //force a UI update | 1450 | //force a UI update |
1451 | handleMemberSelect(); | 1451 | handleMemberSelect(); |
1452 | 1452 | ||
@@ -1485,7 +1485,7 @@ U64 LLPanelGroupMembersSubTab::getAgentPowersBasedOnRoleChanges(const LLUUID& ag | |||
1485 | //and then we have to build the powers up bases on the roles the agent | 1485 | //and then we have to build the powers up bases on the roles the agent |
1486 | //is in | 1486 | //is in |
1487 | 1487 | ||
1488 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1488 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1489 | if (!gdatap) | 1489 | if (!gdatap) |
1490 | { | 1490 | { |
1491 | llwarns << "LLPanelGroupMembersSubTab::getAgentPowersBasedOnRoleChanges() -- No group data!" << llendl; | 1491 | llwarns << "LLPanelGroupMembersSubTab::getAgentPowersBasedOnRoleChanges() -- No group data!" << llendl; |
@@ -1598,7 +1598,7 @@ void LLPanelGroupMembersSubTab::update(LLGroupChange gc) | |||
1598 | return; | 1598 | return; |
1599 | } | 1599 | } |
1600 | 1600 | ||
1601 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1601 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1602 | if (!gdatap) | 1602 | if (!gdatap) |
1603 | { | 1603 | { |
1604 | llwarns << "LLPanelGroupMembersSubTab::update() -- No group data!" << llendl; | 1604 | llwarns << "LLPanelGroupMembersSubTab::update() -- No group data!" << llendl; |
@@ -1649,7 +1649,7 @@ void LLPanelGroupMembersSubTab::updateMembers() | |||
1649 | 1649 | ||
1650 | lldebugs << "LLPanelGroupMembersSubTab::updateMembers()" << llendl; | 1650 | lldebugs << "LLPanelGroupMembersSubTab::updateMembers()" << llendl; |
1651 | 1651 | ||
1652 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1652 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1653 | if (!gdatap) | 1653 | if (!gdatap) |
1654 | { | 1654 | { |
1655 | llwarns << "LLPanelGroupMembersSubTab::updateMembers() -- No group data!" << llendl; | 1655 | llwarns << "LLPanelGroupMembersSubTab::updateMembers() -- No group data!" << llendl; |
@@ -1856,7 +1856,7 @@ bool LLPanelGroupRolesSubTab::needsApply(LLString& mesg) | |||
1856 | { | 1856 | { |
1857 | lldebugs << "LLPanelGroupRolesSubTab::needsApply()" << llendl; | 1857 | lldebugs << "LLPanelGroupRolesSubTab::needsApply()" << llendl; |
1858 | 1858 | ||
1859 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1859 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1860 | 1860 | ||
1861 | return (mHasRoleChange // Text changed in current role | 1861 | return (mHasRoleChange // Text changed in current role |
1862 | || (gdatap && gdatap->pendingRoleChanges())); // Pending role changes in the group | 1862 | || (gdatap && gdatap->pendingRoleChanges())); // Pending role changes in the group |
@@ -1867,7 +1867,7 @@ bool LLPanelGroupRolesSubTab::apply(LLString& mesg) | |||
1867 | lldebugs << "LLPanelGroupRolesSubTab::apply()" << llendl; | 1867 | lldebugs << "LLPanelGroupRolesSubTab::apply()" << llendl; |
1868 | 1868 | ||
1869 | saveRoleChanges(); | 1869 | saveRoleChanges(); |
1870 | gGroupMgr->sendGroupRoleChanges(mGroupID); | 1870 | LLGroupMgr::getInstance()->sendGroupRoleChanges(mGroupID); |
1871 | 1871 | ||
1872 | notifyObservers(); | 1872 | notifyObservers(); |
1873 | 1873 | ||
@@ -1877,7 +1877,7 @@ bool LLPanelGroupRolesSubTab::apply(LLString& mesg) | |||
1877 | void LLPanelGroupRolesSubTab::cancel() | 1877 | void LLPanelGroupRolesSubTab::cancel() |
1878 | { | 1878 | { |
1879 | mHasRoleChange = FALSE; | 1879 | mHasRoleChange = FALSE; |
1880 | gGroupMgr->cancelGroupRoleChanges(mGroupID); | 1880 | LLGroupMgr::getInstance()->cancelGroupRoleChanges(mGroupID); |
1881 | 1881 | ||
1882 | notifyObservers(); | 1882 | notifyObservers(); |
1883 | } | 1883 | } |
@@ -1930,11 +1930,11 @@ void LLPanelGroupRolesSubTab::update(LLGroupChange gc) | |||
1930 | 1930 | ||
1931 | if (mGroupID.isNull()) return; | 1931 | if (mGroupID.isNull()) return; |
1932 | 1932 | ||
1933 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 1933 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
1934 | 1934 | ||
1935 | if (!gdatap || !gdatap->isRoleDataComplete()) | 1935 | if (!gdatap || !gdatap->isRoleDataComplete()) |
1936 | { | 1936 | { |
1937 | gGroupMgr->sendGroupRoleDataRequest(mGroupID); | 1937 | LLGroupMgr::getInstance()->sendGroupRoleDataRequest(mGroupID); |
1938 | } | 1938 | } |
1939 | else | 1939 | else |
1940 | { | 1940 | { |
@@ -2005,12 +2005,12 @@ void LLPanelGroupRolesSubTab::update(LLGroupChange gc) | |||
2005 | 2005 | ||
2006 | if (!gdatap || !gdatap->isMemberDataComplete()) | 2006 | if (!gdatap || !gdatap->isMemberDataComplete()) |
2007 | { | 2007 | { |
2008 | gGroupMgr->sendGroupMembersRequest(mGroupID); | 2008 | LLGroupMgr::getInstance()->sendGroupMembersRequest(mGroupID); |
2009 | } | 2009 | } |
2010 | 2010 | ||
2011 | if (!gdatap || !gdatap->isRoleMemberDataComplete()) | 2011 | if (!gdatap || !gdatap->isRoleMemberDataComplete()) |
2012 | { | 2012 | { |
2013 | gGroupMgr->sendGroupRoleMembersRequest(mGroupID); | 2013 | LLGroupMgr::getInstance()->sendGroupRoleMembersRequest(mGroupID); |
2014 | } | 2014 | } |
2015 | 2015 | ||
2016 | if ((GC_ROLE_MEMBER_DATA == gc || GC_MEMBER_DATA == gc) | 2016 | if ((GC_ROLE_MEMBER_DATA == gc || GC_MEMBER_DATA == gc) |
@@ -2037,7 +2037,7 @@ void LLPanelGroupRolesSubTab::handleRoleSelect() | |||
2037 | mAssignedMembersList->deleteAllItems(); | 2037 | mAssignedMembersList->deleteAllItems(); |
2038 | mAllowedActionsList->deleteAllItems(); | 2038 | mAllowedActionsList->deleteAllItems(); |
2039 | 2039 | ||
2040 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2040 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2041 | if (!gdatap) | 2041 | if (!gdatap) |
2042 | { | 2042 | { |
2043 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " | 2043 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " |
@@ -2118,7 +2118,7 @@ void LLPanelGroupRolesSubTab::buildMembersList() | |||
2118 | { | 2118 | { |
2119 | mAssignedMembersList->deleteAllItems(); | 2119 | mAssignedMembersList->deleteAllItems(); |
2120 | 2120 | ||
2121 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2121 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2122 | if (!gdatap) | 2122 | if (!gdatap) |
2123 | { | 2123 | { |
2124 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " | 2124 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " |
@@ -2179,7 +2179,7 @@ void LLPanelGroupRolesSubTab::handleActionCheck(LLCheckBoxCtrl* check, bool forc | |||
2179 | { | 2179 | { |
2180 | lldebugs << "LLPanelGroupRolesSubTab::handleActionSelect()" << llendl; | 2180 | lldebugs << "LLPanelGroupRolesSubTab::handleActionSelect()" << llendl; |
2181 | 2181 | ||
2182 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2182 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2183 | if (!gdatap) | 2183 | if (!gdatap) |
2184 | { | 2184 | { |
2185 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " | 2185 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " |
@@ -2313,7 +2313,7 @@ void LLPanelGroupRolesSubTab::handleMemberVisibilityChange(bool value) | |||
2313 | { | 2313 | { |
2314 | lldebugs << "LLPanelGroupRolesSubTab::handleMemberVisibilityChange()" << llendl; | 2314 | lldebugs << "LLPanelGroupRolesSubTab::handleMemberVisibilityChange()" << llendl; |
2315 | 2315 | ||
2316 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2316 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2317 | if (!gdatap) | 2317 | if (!gdatap) |
2318 | { | 2318 | { |
2319 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " | 2319 | llwarns << "LLPanelGroupRolesSubTab::handleRoleSelect() " |
@@ -2348,7 +2348,7 @@ void LLPanelGroupRolesSubTab::onCreateRole(void* user_data) | |||
2348 | 2348 | ||
2349 | void LLPanelGroupRolesSubTab::handleCreateRole() | 2349 | void LLPanelGroupRolesSubTab::handleCreateRole() |
2350 | { | 2350 | { |
2351 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2351 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2352 | 2352 | ||
2353 | if (!gdatap) return; | 2353 | if (!gdatap) return; |
2354 | 2354 | ||
@@ -2389,7 +2389,7 @@ void LLPanelGroupRolesSubTab::onDeleteRole(void* user_data) | |||
2389 | 2389 | ||
2390 | void LLPanelGroupRolesSubTab::handleDeleteRole() | 2390 | void LLPanelGroupRolesSubTab::handleDeleteRole() |
2391 | { | 2391 | { |
2392 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2392 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2393 | 2393 | ||
2394 | if (!gdatap) return; | 2394 | if (!gdatap) return; |
2395 | 2395 | ||
@@ -2416,7 +2416,7 @@ void LLPanelGroupRolesSubTab::handleDeleteRole() | |||
2416 | 2416 | ||
2417 | void LLPanelGroupRolesSubTab::saveRoleChanges() | 2417 | void LLPanelGroupRolesSubTab::saveRoleChanges() |
2418 | { | 2418 | { |
2419 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2419 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2420 | 2420 | ||
2421 | if (!gdatap) return; | 2421 | if (!gdatap) return; |
2422 | 2422 | ||
@@ -2589,7 +2589,7 @@ void LLPanelGroupActionsSubTab::handleActionSelect() | |||
2589 | mActionDescription->clear(); | 2589 | mActionDescription->clear(); |
2590 | } | 2590 | } |
2591 | 2591 | ||
2592 | LLGroupMgrGroupData* gdatap = gGroupMgr->getGroupData(mGroupID); | 2592 | LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID); |
2593 | 2593 | ||
2594 | if (!gdatap) return; | 2594 | if (!gdatap) return; |
2595 | 2595 | ||
@@ -2611,7 +2611,7 @@ void LLPanelGroupActionsSubTab::handleActionSelect() | |||
2611 | } | 2611 | } |
2612 | else | 2612 | else |
2613 | { | 2613 | { |
2614 | gGroupMgr->sendGroupMembersRequest(mGroupID); | 2614 | LLGroupMgr::getInstance()->sendGroupMembersRequest(mGroupID); |
2615 | } | 2615 | } |
2616 | 2616 | ||
2617 | if (gdatap->isRoleDataComplete()) | 2617 | if (gdatap->isRoleDataComplete()) |
@@ -2632,6 +2632,6 @@ void LLPanelGroupActionsSubTab::handleActionSelect() | |||
2632 | } | 2632 | } |
2633 | else | 2633 | else |
2634 | { | 2634 | { |
2635 | gGroupMgr->sendGroupRoleDataRequest(mGroupID); | 2635 | LLGroupMgr::getInstance()->sendGroupRoleDataRequest(mGroupID); |
2636 | } | 2636 | } |
2637 | } | 2637 | } |