diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llpanelpermissions.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/newview/llpanelpermissions.cpp')
-rw-r--r-- | linden/indra/newview/llpanelpermissions.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelpermissions.cpp b/linden/indra/newview/llpanelpermissions.cpp index ea742ba..0d50f38 100644 --- a/linden/indra/newview/llpanelpermissions.cpp +++ b/linden/indra/newview/llpanelpermissions.cpp | |||
@@ -327,6 +327,7 @@ void LLPanelPermissions::refresh() | |||
327 | 327 | ||
328 | // update group text field | 328 | // update group text field |
329 | childSetEnabled("Group:",true); | 329 | childSetEnabled("Group:",true); |
330 | childSetText("Group Name",LLString::null); | ||
330 | LLUUID group_id; | 331 | LLUUID group_id; |
331 | BOOL groups_identical = LLSelectMgr::getInstance()->selectGetGroup(group_id); | 332 | BOOL groups_identical = LLSelectMgr::getInstance()->selectGetGroup(group_id); |
332 | if (groups_identical) | 333 | if (groups_identical) |
@@ -337,6 +338,16 @@ void LLPanelPermissions::refresh() | |||
337 | mLabelGroupName->setEnabled(TRUE); | 338 | mLabelGroupName->setEnabled(TRUE); |
338 | } | 339 | } |
339 | } | 340 | } |
341 | else | ||
342 | { | ||
343 | if(mLabelGroupName) | ||
344 | { | ||
345 | mLabelGroupName->setNameID(LLUUID::null, TRUE); | ||
346 | mLabelGroupName->refresh(LLUUID::null, "", "", TRUE); | ||
347 | mLabelGroupName->setEnabled(FALSE); | ||
348 | } | ||
349 | } | ||
350 | |||
340 | childSetEnabled("button set group",owners_identical && (mOwnerID == gAgent.getID())); | 351 | childSetEnabled("button set group",owners_identical && (mOwnerID == gAgent.getID())); |
341 | 352 | ||
342 | // figure out the contents of the name, description, & category | 353 | // figure out the contents of the name, description, & category |
@@ -854,7 +865,7 @@ void callback_deed_to_group(S32 option, void*) | |||
854 | { | 865 | { |
855 | LLUUID group_id; | 866 | LLUUID group_id; |
856 | BOOL groups_identical = LLSelectMgr::getInstance()->selectGetGroup(group_id); | 867 | BOOL groups_identical = LLSelectMgr::getInstance()->selectGetGroup(group_id); |
857 | if(groups_identical && (gAgent.hasPowerInGroup(group_id, GP_OBJECT_DEED))) | 868 | if(group_id.notNull() && groups_identical && (gAgent.hasPowerInGroup(group_id, GP_OBJECT_DEED))) |
858 | { | 869 | { |
859 | LLSelectMgr::getInstance()->sendOwner(LLUUID::null, group_id, FALSE); | 870 | LLSelectMgr::getInstance()->sendOwner(LLUUID::null, group_id, FALSE); |
860 | // LLViewerStats::getInstance()->incStat(LLViewerStats::ST_RELEASE_COUNT); | 871 | // LLViewerStats::getInstance()->incStat(LLViewerStats::ST_RELEASE_COUNT); |