CHUI-303: Problem was that the prior solution only updated (using dirtyFilter()) the inventory window that the paste occurred in. Resolution: Now each inventory window calls dirtyFilter(), which then determines visibility of the pasted item.
parent
5c14f6e783
commit
d41202336b
|
|
@ -3193,16 +3193,8 @@ void LLFolderBridge::pasteFromClipboard()
|
|||
LLViewerInventoryCategory* vicat = (LLViewerInventoryCategory *) model->getCategory(item_id);
|
||||
llassert(vicat);
|
||||
if (vicat)
|
||||
{
|
||||
//Set the pasted folder to dirty, could do this in changeCategoryParent() but only need to set dirty
|
||||
//when pasting from the clipboard. Setting dirty allows updating the filter state, which determines
|
||||
//visibility in the new pasted location.
|
||||
LLFolderViewFolder * folderViewItem = mInventoryPanel.get() ? mInventoryPanel.get()->getFolderByID(item_id) : NULL;
|
||||
if(folderViewItem && folderViewItem->getViewModelItem())
|
||||
{
|
||||
folderViewItem->getViewModelItem()->dirtyFilter();
|
||||
}
|
||||
|
||||
{
|
||||
//changeCategoryParent() implicity calls dirtyFilter
|
||||
changeCategoryParent(model, vicat, parent_id, FALSE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -986,6 +986,7 @@ void LLInventoryModel::updateCategory(const LLViewerInventoryCategory* cat)
|
|||
cat_array->put(old_cat);
|
||||
}
|
||||
mask |= LLInventoryObserver::STRUCTURE;
|
||||
mask |= LLInventoryObserver::INTERNAL;
|
||||
}
|
||||
if(old_cat->getName() != cat->getName())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue