FIRE-4970: Allow inventory DaD to the friend list

master
Ansariel 2015-08-08 19:21:47 +02:00
parent 48d68cb3f6
commit d23be30019
1 changed files with 11 additions and 1 deletions

View File

@ -46,6 +46,7 @@
#include "llslurl.h"
#include "llstartup.h"
#include "lltabcontainer.h"
#include "lltooldraganddrop.h"
#include "llviewermenu.h"
#include "llvoiceclient.h"
@ -1303,7 +1304,16 @@ BOOL FSFloaterContacts::handleFriendsListDragAndDrop(S32 x, S32 y, MASK mask, BO
}
else
{
*accept = ACCEPT_NO;
LLScrollListItem* hit_item = mFriendsList->hitItem(x, y);
if (hit_item)
{
LLToolDragAndDrop::handleGiveDragAndDrop(hit_item->getUUID(), LLUUID::null, drop,
cargo_type, cargo_data, accept);
}
else
{
*accept = ACCEPT_NO;
}
}
return TRUE;