diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-06-16 23:42:45 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-06-16 23:42:45 +0300 |
commit | 7607047a95a8b1cb89e3007138fbb00986067c2b (patch) | |
tree | a44939037302cc6f3204a83de6e107cdcd079197 /indra/newview/llinventorypanel.cpp | |
parent | f1ff6c7ec131d0058333070f52e63365229af4d2 (diff) |
SL-19863 FIXED Items are not copied when attempting to paste into gallery mode
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
-rw-r--r-- | indra/newview/llinventorypanel.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index f7a24a09c0..a53f2f85cb 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -2196,7 +2196,7 @@ LLInventorySingleFolderPanel::LLInventorySingleFolderPanel(const Params& params) getFilter().setEmptyLookupMessage("InventorySingleFolderNoMatches"); getFilter().setDefaultEmptyLookupMessage("InventorySingleFolderEmpty"); - mCommitCallbackRegistrar.add("Inventory.OpenSelectedFolder", boost::bind(&LLInventorySingleFolderPanel::openInCurrentWindow, this, _2)); + mCommitCallbackRegistrar.replace("Inventory.DoToSelected", boost::bind(&LLInventorySingleFolderPanel::doToSelected, this, _2)); mCommitCallbackRegistrar.replace("Inventory.DoCreate", boost::bind(&LLInventorySingleFolderPanel::doCreate, this, _2)); mCommitCallbackRegistrar.replace("Inventory.Share", boost::bind(&LLInventorySingleFolderPanel::doShare, this)); } @@ -2230,11 +2230,6 @@ void LLInventorySingleFolderPanel::initFolderRoot(const LLUUID& start_folder_id) mFolderRoot.get()->setSingleFolderMode(true); } -void LLInventorySingleFolderPanel::openInCurrentWindow(const LLSD& userdata) -{ - changeFolderRoot(LLFolderBridge::sSelf.get()->getUUID()); -} - void LLInventorySingleFolderPanel::changeFolderRoot(const LLUUID& new_id) { if (mFolderID != new_id) @@ -2365,6 +2360,16 @@ void LLInventorySingleFolderPanel::doCreate(const LLSD& userdata) menu_create_inventory_item(this, dest_id, userdata); } +void LLInventorySingleFolderPanel::doToSelected(const LLSD& userdata) +{ + if (("open_in_current_window" == userdata.asString())) + { + changeFolderRoot(LLFolderBridge::sSelf.get()->getUUID()); + return; + } + LLInventoryPanel::doToSelected(userdata); +} + void LLInventorySingleFolderPanel::doShare() { LLAvatarActions::shareWithAvatars(this); |