LLDropTarget::mEntityID=>LLDropTarget::mID
This commit is contained in:
@@ -253,8 +253,8 @@ void LLDropTarget::doDrop(EDragAndDropType cargo_type, void* cargo_data)
|
||||
|
||||
BOOL LLDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void* cargo_data, EAcceptance* accept, std::string& tooltip_msg)
|
||||
{
|
||||
if (mEntityID.notNull())
|
||||
return getParent() ? LLToolDragAndDrop::handleGiveDragAndDrop(mEntityID, LLUUID::null, drop, cargo_type, cargo_data, accept) : false;
|
||||
if (mID.notNull())
|
||||
return getParent() ? LLToolDragAndDrop::handleGiveDragAndDrop(mID, LLUUID::null, drop, cargo_type, cargo_data, accept) : false;
|
||||
|
||||
if (LLViewerInventoryItem* inv_item = static_cast<LLViewerInventoryItem*>(cargo_data))
|
||||
{
|
||||
|
||||
@@ -76,13 +76,13 @@ public:
|
||||
|
||||
void setChildRects(LLRect rect);
|
||||
void fillParent(const LLView* parent);
|
||||
void setEntityID(const LLUUID& id) { mEntityID = id;}
|
||||
void setEntityID(const LLUUID& id) { mID = id;}
|
||||
|
||||
protected:
|
||||
virtual void setItem(const class LLInventoryItem* item);
|
||||
void setControlValue(const std::string& val);
|
||||
|
||||
LLUUID mEntityID;
|
||||
LLUUID mID;
|
||||
class LLViewBorder* mBorder;
|
||||
LLControlVariable* mControl;
|
||||
boost::signals2::scoped_connection mConnection;
|
||||
|
||||
@@ -124,7 +124,7 @@ BOOL LLGroupDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
||||
{
|
||||
BOOL handled = FALSE;
|
||||
|
||||
if (!gAgent.hasPowerInGroup(mEntityID,GP_NOTICES_SEND))
|
||||
if (!gAgent.hasPowerInGroup(mID,GP_NOTICES_SEND))
|
||||
{
|
||||
*accept = ACCEPT_NO;
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user