summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryfunctions.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-30 13:10:36 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-30 13:10:36 +0300
commit5c55adae47cab93a12793528373f639ea9e8efcf (patch)
treeffc13bb9ee911a2ed2560e008d585363b2059638 /indra/newview/llinventoryfunctions.cpp
parentd42f2a1887a1bc94a97c08bfe676731672ce53d3 (diff)
SL-19773 add context menu for root folder in single folder mode
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rw-r--r--indra/newview/llinventoryfunctions.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index b934ccd22b..a259dad08a 100644
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -3194,6 +3194,14 @@ void LLInventoryAction::doToSelected(LLInventoryModel* model, LLFolderView* root
if(!bridge) continue;
bridge->performAction(model, action);
}
+ if(root->isSingleFolderMode() && selected_items.empty())
+ {
+ LLInvFVBridge* bridge = (LLInvFVBridge*)root->getViewModelItem();
+ if(bridge)
+ {
+ bridge->performAction(model, action);
+ }
+ }
}
// Update the marketplace listings that have been affected by the operation