Skip to content
Snippets Groups Projects
Commit c3b9ed68 authored by Seth ProductEngine's avatar Seth ProductEngine
Browse files

STORM-296 FIXED Item types that can be dropped to Places SP->My Landmarks ...

STORM-296 FIXED Item types that can be dropped to Places SP->My Landmarks  restricted to landmarks and folders only.
parent 7d9ec365
No related branches found
No related tags found
No related merge requests found
...@@ -205,6 +205,24 @@ BOOL LLPlacesFolderView::handleRightMouseDown(S32 x, S32 y, MASK mask) ...@@ -205,6 +205,24 @@ BOOL LLPlacesFolderView::handleRightMouseDown(S32 x, S32 y, MASK mask)
return LLFolderView::handleRightMouseDown(x, y, mask); return LLFolderView::handleRightMouseDown(x, y, mask);
} }
BOOL LLPlacesFolderView::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
EDragAndDropType cargo_type,
void* cargo_data,
EAcceptance* accept,
std::string& tooltip_msg)
{
// Don't accept anything except landmarks and folders to be dropped
// in places folder view. See STORM-296.
if (cargo_type != DAD_LANDMARK && cargo_type != DAD_CATEGORY)
{
*accept = ACCEPT_NO;
return FALSE;
}
return LLFolderView::handleDragAndDrop(x, y, mask, drop, cargo_type, cargo_data,
accept, tooltip_msg);
}
void LLPlacesFolderView::setupMenuHandle(LLInventoryType::EType asset_type, LLHandle<LLView> menu_handle) void LLPlacesFolderView::setupMenuHandle(LLInventoryType::EType asset_type, LLHandle<LLView> menu_handle)
{ {
mMenuHandlesByInventoryType[asset_type] = menu_handle; mMenuHandlesByInventoryType[asset_type] = menu_handle;
......
...@@ -70,6 +70,12 @@ class LLPlacesFolderView : public LLFolderView ...@@ -70,6 +70,12 @@ class LLPlacesFolderView : public LLFolderView
*/ */
/*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask ); /*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask );
/*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
EDragAndDropType cargo_type,
void* cargo_data,
EAcceptance* accept,
std::string& tooltip_msg);
void setupMenuHandle(LLInventoryType::EType asset_type, LLHandle<LLView> menu_handle); void setupMenuHandle(LLInventoryType::EType asset_type, LLHandle<LLView> menu_handle);
void setParentLandmarksPanel(LLLandmarksPanel* panel) void setParentLandmarksPanel(LLLandmarksPanel* panel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment