commitCallbacks have the new value built in, let's not bother with childGetValue for the export check =^*^=
This commit is contained in:
@@ -140,7 +140,7 @@ BOOL LLPanelPermissions::postBuild()
|
||||
|
||||
childSetCommitCallback("checkbox allow everyone copy",LLPanelPermissions::onCommitEveryoneCopy,this);
|
||||
|
||||
getChild<LLUICtrl>("checkbox allow export")->setCommitCallback(boost::bind(&LLPanelPermissions::onCommitExport, this));
|
||||
getChild<LLUICtrl>("checkbox allow export")->setCommitCallback(boost::bind(&LLPanelPermissions::onCommitExport, this, _2));
|
||||
|
||||
childSetCommitCallback("checkbox for sale",LLPanelPermissions::onCommitSaleInfo,this);
|
||||
|
||||
@@ -1180,9 +1180,9 @@ void LLPanelPermissions::onCommitEveryoneCopy(LLUICtrl *ctrl, void *data)
|
||||
onCommitPerm(ctrl, data, PERM_EVERYONE, PERM_COPY);
|
||||
}
|
||||
|
||||
void LLPanelPermissions::onCommitExport()
|
||||
void LLPanelPermissions::onCommitExport(const LLSD& param)
|
||||
{
|
||||
LLSelectMgr::getInstance()->selectionSetObjectPermissions(PERM_EVERYONE, childGetValue("checkbox allow export"), PERM_EXPORT);
|
||||
LLSelectMgr::getInstance()->selectionSetObjectPermissions(PERM_EVERYONE, param, PERM_EXPORT);
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
@@ -87,7 +87,7 @@ protected:
|
||||
static void onCommitEveryoneMove(LLUICtrl *ctrl, void *data);
|
||||
static void onCommitEveryoneCopy(LLUICtrl *ctrl, void *data);
|
||||
//static void onCommitEveryoneModify(LLUICtrl *ctrl, void *data);
|
||||
void onCommitExport();
|
||||
void onCommitExport(const LLSD& param);
|
||||
|
||||
static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data);
|
||||
static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data);
|
||||
|
||||
Reference in New Issue
Block a user