Hide the export check boxes when on SL.
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "llviewerwindow.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llpermissions.h"
|
||||
#include "hippogridmanager.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -82,6 +83,9 @@ BOOL LLFloaterPerms::postBuild()
|
||||
bool export_support = LFSimFeatureHandler::instance().simSupportsExport();
|
||||
const U32 next_owner_perms = getNextOwnerPerms();
|
||||
childSetEnabled("everyone_export", export_support && (next_owner_perms & PERM_ITEM_UNRESTRICTED) == PERM_ITEM_UNRESTRICTED);
|
||||
if (!gHippoGridManager->getCurrentGrid()->isSecondLife())
|
||||
childSetVisible("everyone_export", false);
|
||||
|
||||
if (!next_owner_perms & PERM_COPY)
|
||||
childSetEnabled("next_owner_transfer", false);
|
||||
else if (export_support)
|
||||
|
||||
Reference in New Issue
Block a user