diff options
| author | Leyla Farazha <leyla@lindenlab.com> | 2011-08-18 18:04:44 -0700 | 
|---|---|---|
| committer | Leyla Farazha <leyla@lindenlab.com> | 2011-08-18 18:04:44 -0700 | 
| commit | 504fabba1d8d2ffd1d3c43368cbd1a8522ca2ebc (patch) | |
| tree | 1822899b442f433eeea29d6d4610016fc44446a8 | |
| parent | 8baafe6613e62a76c6a0b85842cc7d542d615e71 (diff) | |
fixing inner inbox drag and drop
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 01d4153d3f..5c13a46f56 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -1767,6 +1767,7 @@ BOOL LLFolderBridge::dragCategoryIntoFolder(LLInventoryCategory* inv_cat,  		const BOOL move_is_into_outfit = getCategory() && (getCategory()->getPreferredType() == LLFolderType::FT_OUTFIT);  		const BOOL move_is_into_landmarks = (mUUID == landmarks_id) || model->isObjectDescendentOf(mUUID, landmarks_id);  		const BOOL move_is_into_outbox = model->isObjectDescendentOf(mUUID, outbox_id);  +		const BOOL move_is_from_outbox = model->isObjectDescendentOf(inv_cat->getUUID(), outbox_id);  		//--------------------------------------------------------------------------------  		// Determine if folder can be moved. @@ -1907,7 +1908,7 @@ BOOL LLFolderBridge::dragCategoryIntoFolder(LLInventoryCategory* inv_cat,  #endif  				}  			} -			if (move_is_into_outbox) +			if (move_is_into_outbox && !move_is_from_outbox)  			{  				dropFolderToOutbox(inv_cat);  			} @@ -3191,6 +3192,7 @@ BOOL LLFolderBridge::dragItemIntoFolder(LLInventoryItem* inv_item,  	const BOOL move_is_into_outfit = (getCategory() && getCategory()->getPreferredType()==LLFolderType::FT_OUTFIT);  	const BOOL move_is_into_landmarks = (mUUID == landmarks_id) || model->isObjectDescendentOf(mUUID, landmarks_id);  	const BOOL move_is_into_outbox = model->isObjectDescendentOf(mUUID, outbox_id); //(mUUID == outbox_id); +	const BOOL move_is_from_outbox = model->isObjectDescendentOf(inv_item->getUUID(), outbox_id);  	LLToolDragAndDrop::ESource source = LLToolDragAndDrop::getInstance()->getSource();  	BOOL accept = FALSE; @@ -3310,7 +3312,7 @@ BOOL LLFolderBridge::dragItemIntoFolder(LLInventoryItem* inv_item,  			{  				dropToOutfit(inv_item, move_is_into_current_outfit);  			} -			else if (move_is_into_outbox) +			else if (move_is_into_outbox && !move_is_from_outbox)  			{  				copy_item_to_outbox(inv_item, outbox_id, LLUUID::null);  			} | 
