EXP-1828 FIX -- Drag and drop to an open folder in the outbox causes it to close automatically

* Updated auto-open behavior to ignore items that are already open.
meow-7.2.2
Leslie Linden 2012-01-19 14:23:01 -08:00
parent 00fc2d5a5c
commit bcdecbdae1
1 changed files with 3 additions and 1 deletions

View File

@ -1199,7 +1199,9 @@ void LLFolderView::changeType(LLInventoryModel *model, LLFolderType::EType new_f
void LLFolderView::autoOpenItem( LLFolderViewFolder* item )
{
if (mAutoOpenItems.check() == item || mAutoOpenItems.getDepth() >= (U32)AUTO_OPEN_STACK_DEPTH)
if ((mAutoOpenItems.check() == item) ||
(mAutoOpenItems.getDepth() >= (U32)AUTO_OPEN_STACK_DEPTH) ||
item->isOpen())
{
return;
}