From 1a8660909d986b282b8ed95e068765103be97eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Fri, 10 Apr 2020 17:39:44 -0400 Subject: [PATCH] Copy Folder ID and Open Folder In New Window for ANY folder --- indra/newview/llinventorybridge.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 89f43f372..ba589390f 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -3889,6 +3889,9 @@ void build_context_menu_folder_options(LLInventoryModel* model, const LLUUID& mU const LLInventoryCategory* category = model->getCategory(mUUID); if(!category) return; + items.push_back(std::string("Open Folder In New Window")); + items.push_back(std::string("Copy Folder UUID")); + const LLUUID trash_id = model->findCategoryUUIDForType(LLFolderType::FT_TRASH); if (trash_id == mUUID) return; if (model->isObjectDescendentOf(mUUID, trash_id)) return; @@ -3902,9 +3905,6 @@ void build_context_menu_folder_options(LLInventoryModel* model, const LLUUID& mU const LLUUID listings_folder = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false); if (listings_folder.notNull() && gInventory.isObjectDescendentOf(mUUID, listings_folder)) return; - items.push_back(std::string("Open Folder In New Window")); - items.push_back(std::string("Copy Folder UUID")); - LLFolderType::EType type = category->getPreferredType(); const bool is_system_folder = LLFolderType::lookupIsProtectedType(type); // calling card related functionality for folders.