Hide the export check boxes when on SL.

This commit is contained in:
Melanie
2013-04-16 12:35:02 +02:00
parent f960a79118
commit ab29c73ff5
3 changed files with 8 additions and 0 deletions

View File

@@ -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)