EXT-2575 [BSI] Deleting content inside a prim from build floater deletes prim, rather than content
parent
e8196ca93f
commit
a28de873ce
|
|
@ -1695,6 +1695,7 @@ void LLPanelObjectInventory::updateInventory()
|
|||
}
|
||||
|
||||
mFolders->requestArrange();
|
||||
//LLEditMenuHandler::gEditMenuHandler = mFolders;
|
||||
mInventoryNeedsUpdate = FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -1940,3 +1941,22 @@ void LLPanelObjectInventory::idle(void* user_data)
|
|||
self->updateInventory();
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelObjectInventory::onFocusLost()
|
||||
{
|
||||
// inventory no longer handles cut/copy/paste/delete
|
||||
if (LLEditMenuHandler::gEditMenuHandler == mFolders)
|
||||
{
|
||||
LLEditMenuHandler::gEditMenuHandler = NULL;
|
||||
}
|
||||
|
||||
LLPanel::onFocusLost();
|
||||
}
|
||||
|
||||
void LLPanelObjectInventory::onFocusReceived()
|
||||
{
|
||||
// inventory now handles cut/copy/paste/delete
|
||||
LLEditMenuHandler::gEditMenuHandler = mFolders;
|
||||
|
||||
LLPanel::onFocusReceived();
|
||||
}
|
||||
|
|
@ -74,6 +74,9 @@ public:
|
|||
virtual void deleteAllChildren();
|
||||
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, std::string& tooltip_msg);
|
||||
|
||||
/*virtual*/ void onFocusLost();
|
||||
/*virtual*/ void onFocusReceived();
|
||||
|
||||
static void idle(void* user_data);
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@
|
|||
function="Edit.EnablePaste" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Delete"
|
||||
layout="topleft"
|
||||
name="Delete"
|
||||
shortcut="Del">
|
||||
label="Delete"
|
||||
layout="topleft"
|
||||
name="Delete"
|
||||
shortcut="Del">
|
||||
<menu_item_call.on_click
|
||||
function="Edit.Delete" />
|
||||
<menu_item_call.on_enable
|
||||
|
|
|
|||
Loading…
Reference in New Issue