diff options
author | angela <angela@lindenlab.com> | 2009-12-03 22:28:53 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2009-12-03 22:28:53 +0800 |
commit | a28de873cea85bdedcac20a164d7bd2012a4d5bc (patch) | |
tree | 60566a2da09d2918e6df84512b3b8fc62162a729 /indra/newview/llpanelobjectinventory.cpp | |
parent | e8196ca93f24644998777da6b2286920c7709cbe (diff) |
EXT-2575 [BSI] Deleting content inside a prim from build floater deletes prim, rather than content
Diffstat (limited to 'indra/newview/llpanelobjectinventory.cpp')
-rw-r--r-- | indra/newview/llpanelobjectinventory.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp index 342d2bc739..7b0eb8c2d2 100644 --- a/indra/newview/llpanelobjectinventory.cpp +++ b/indra/newview/llpanelobjectinventory.cpp @@ -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(); +}
\ No newline at end of file |