diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-04 19:23:45 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-04 19:54:23 +0200 |
commit | 13a65319e0648cf228a82950e96a84d3a69bf6e3 (patch) | |
tree | b98260153c28fce5dc3693ae4f28a483daa84d0a /indra/newview/llfloatermarketplacelistings.cpp | |
parent | 25b42dd1902e1ba855856878aec7b2f7c41e2624 (diff) |
SL-19109 Turn LLSidepanelItemInfo into a normal panel
Diffstat (limited to 'indra/newview/llfloatermarketplacelistings.cpp')
-rw-r--r-- | indra/newview/llfloatermarketplacelistings.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 478b6a9a50..4c8e365dd0 100644 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -955,20 +955,13 @@ LLFloaterItemProperties::~LLFloaterItemProperties() BOOL LLFloaterItemProperties::postBuild() { - // On the standalone properties floater, we have no need for a back button... - LLSidepanelInventorySubpanel* panel = findChild<LLSidepanelInventorySubpanel>("sidepanel"); - if (panel) - { - LLButton* back_btn = panel->getChild<LLButton>("back_btn"); - back_btn->setVisible(FALSE); - } return LLFloater::postBuild(); } void LLFloaterItemProperties::onOpen(const LLSD& key) { // Tell the panel which item it needs to visualize - LLSidepanelInventorySubpanel* panel = findChild<LLSidepanelInventorySubpanel>("sidepanel"); + LLPanel* panel = findChild<LLPanel>("sidepanel"); LLSidepanelItemInfo* item_panel = dynamic_cast<LLSidepanelItemInfo*>(panel); if (item_panel) @@ -978,6 +971,7 @@ void LLFloaterItemProperties::onOpen(const LLSD& key) { item_panel->setObjectID(key["object"].asUUID()); } + item_panel->setParentFloater(this); } LLSidepanelTaskInfo* task_panel = dynamic_cast<LLSidepanelTaskInfo*>(panel); |