diff options
| author | Leslie Linden <leslie@lindenlab.com> | 2011-10-17 15:18:19 -0700 | 
|---|---|---|
| committer | Leslie Linden <leslie@lindenlab.com> | 2011-10-17 15:18:19 -0700 | 
| commit | 0ff49e798c6bed6fe888ac463c746bc06036d876 (patch) | |
| tree | a8ebd3f8a8a1604f6c1ec6787e2c527c00a28520 /indra/newview/llinventorypanel.cpp | |
| parent | ae3b5a4907b4611644d3b21c75ed420bc58593a2 (diff) | |
EXP-1359 FIX -- Selecting New Inventory window from gear menu in Inventory panel opens old My Inventory panel
* Removed old inventory panel.
* Renamed new inventory panel from "my_inventory" to "inventory"
Reviewed by Richard.
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
| -rw-r--r-- | indra/newview/llinventorypanel.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index b0f9cb28e6..18c3f76826 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -1077,7 +1077,7 @@ void LLInventoryPanel::dumpSelectionInformation(void* user_data)  BOOL is_inventorysp_active()  { -	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (!sidepanel_inventory || !sidepanel_inventory->isInVisibleChain()) return FALSE;  	return sidepanel_inventory->isMainInventoryPanelActive();  } @@ -1089,22 +1089,22 @@ LLInventoryPanel* LLInventoryPanel::getActiveInventoryPanel(BOOL auto_open)  	LLInventoryPanel* res = NULL;  	LLFloater* active_inv_floaterp = NULL; -	LLFloater* floater_my_inventory = LLFloaterReg::getInstance("my_inventory"); -	if (!floater_my_inventory) +	LLFloater* floater_inventory = LLFloaterReg::getInstance("inventory"); +	if (!floater_inventory)  	{  		llwarns << "Could not find My Inventory floater" << llendl;  		return FALSE;  	} -	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	// A. If the inventory side panel floater is open, use that preferably.  	if (is_inventorysp_active())  	{  		// Get the floater's z order to compare it to other inventory floaters' order later.  		res = sidepanel_inventory->getActivePanel(); -		z_min = gFloaterView->getZOrder(floater_my_inventory); -		active_inv_floaterp = floater_my_inventory; +		z_min = gFloaterView->getZOrder(floater_inventory); +		active_inv_floaterp = floater_inventory;  	}  	// B. Iterate through the inventory floaters and return whichever is on top. @@ -1137,7 +1137,7 @@ LLInventoryPanel* LLInventoryPanel::getActiveInventoryPanel(BOOL auto_open)  	if (!auto_open) return NULL;  	// D. Open the inventory side panel floater and use that. -	floater_my_inventory->openFloater(); +	floater_inventory->openFloater();  	return sidepanel_inventory->getActivePanel();  	return NULL; | 
