From 7c29d1fb340e988b558b28b3a6fa9fb488ca8422 Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Sun, 9 Oct 2022 17:23:14 +0200 Subject: [PATCH] Remove Show in Main View menu option from standalone folder inventory views, since there is no main view in these --- indra/newview/llinventorybridge.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 56b0818747..38fccce1c7 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -982,7 +982,11 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id, // LLInventoryPanel *active_panel = LLInventoryPanel::getActiveInventoryPanel(FALSE); - if (active_panel && (active_panel->getName() != "All Items")) + // Don't offer "Show in Main View" for folders opened in separate inventory views + // as there are no tabs to switch to + // if (active_panel && (active_panel->getName() != "All Items")) + if (active_panel && (active_panel->getName() != "All Items") && (active_panel->getName() != "inv_panel")) + // { items.push_back(std::string("Show in Main Panel")); }