summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmaininventory.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-03-23 11:58:17 +0200
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-03-23 11:58:17 +0200
commitdfbf9e6d96293b7f97553154d103883dede477b8 (patch)
tree8be140339fc89c416468d5a84eca6da1f10316ef /indra/newview/llpanelmaininventory.cpp
parent24b41ee746ccc6b5dd637b8704dc7ec819434605 (diff)
SL-19379 WIP update Add menu for Gallery view
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
-rw-r--r--indra/newview/llpanelmaininventory.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp
index 2816a2dc89..e60ee20210 100644
--- a/indra/newview/llpanelmaininventory.cpp
+++ b/indra/newview/llpanelmaininventory.cpp
@@ -482,11 +482,18 @@ void LLPanelMainInventory::doCreate(const LLSD& userdata)
reset_inventory_filter();
if(mSingleFolderMode)
{
- LLFolderViewItem* current_folder = getActivePanel()->getRootFolder();
- if (current_folder)
+ if(isListViewMode())
+ {
+ LLFolderViewItem* current_folder = getActivePanel()->getRootFolder();
+ if (current_folder)
+ {
+ LLFolderBridge* bridge = (LLFolderBridge*)current_folder->getViewModelItem();
+ menu_create_inventory_item(getPanel(), bridge, userdata);
+ }
+ }
+ else if(isGalleryViewMode())
{
- LLFolderBridge* bridge = (LLFolderBridge*)current_folder->getViewModelItem();
- menu_create_inventory_item(getPanel(), bridge, userdata);
+ menu_create_inventory_item(NULL, mInventoryGalleryPanel->getRootFolder(), userdata);
}
}
else