Hide the export check boxes when on SL.
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
#include "llviewerwindow.h"
|
#include "llviewerwindow.h"
|
||||||
#include "lluictrlfactory.h"
|
#include "lluictrlfactory.h"
|
||||||
#include "llpermissions.h"
|
#include "llpermissions.h"
|
||||||
|
#include "hippogridmanager.h"
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
@@ -82,6 +83,9 @@ BOOL LLFloaterPerms::postBuild()
|
|||||||
bool export_support = LFSimFeatureHandler::instance().simSupportsExport();
|
bool export_support = LFSimFeatureHandler::instance().simSupportsExport();
|
||||||
const U32 next_owner_perms = getNextOwnerPerms();
|
const U32 next_owner_perms = getNextOwnerPerms();
|
||||||
childSetEnabled("everyone_export", export_support && (next_owner_perms & PERM_ITEM_UNRESTRICTED) == PERM_ITEM_UNRESTRICTED);
|
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)
|
if (!next_owner_perms & PERM_COPY)
|
||||||
childSetEnabled("next_owner_transfer", false);
|
childSetEnabled("next_owner_transfer", false);
|
||||||
else if (export_support)
|
else if (export_support)
|
||||||
|
|||||||
@@ -448,6 +448,8 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
|
|||||||
bool supports_export = LFSimFeatureHandler::instance().simSupportsExport();
|
bool supports_export = LFSimFeatureHandler::instance().simSupportsExport();
|
||||||
childSetEnabled("CheckOwnerExport",false);
|
childSetEnabled("CheckOwnerExport",false);
|
||||||
childSetValue("CheckOwnerExport", supports_export && owner_mask & PERM_EXPORT);
|
childSetValue("CheckOwnerExport", supports_export && owner_mask & PERM_EXPORT);
|
||||||
|
if (!gHippoGridManager->getCurrentGrid()->isSecondLife())
|
||||||
|
childSetVisible("CheckOwnerExport", false);
|
||||||
|
|
||||||
///////////////////////
|
///////////////////////
|
||||||
// DEBUG PERMISSIONS //
|
// DEBUG PERMISSIONS //
|
||||||
|
|||||||
@@ -772,6 +772,8 @@ void LLPanelPermissions::refresh()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
childSetEnabled("checkbox allow export", false);
|
childSetEnabled("checkbox allow export", false);
|
||||||
|
if (!gHippoGridManager->getCurrentGrid()->isSecondLife())
|
||||||
|
childSetVisible("checkbox allow export", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_change_sale_ability && (owner_mask_on & PERM_TRANSFER))
|
if (has_change_sale_ability && (owner_mask_on & PERM_TRANSFER))
|
||||||
|
|||||||
Reference in New Issue
Block a user