Commits

nyx committed 59e48e4

EXT-3514 update debug settings for appearance

fixing layout issues with previous patch to avoid breaking the bottom buttons

reviewed by vir

Comments (0)

Files changed (2)

indra/newview/llpaneloutfitsinventory.cpp

 		mParent->updateVerbs();
 	}
 
-	childSetVisible("look_edit_btn",sShowDebugEditor);
+	if (mListCommands)
+	{
+		mListCommands->childSetVisible("look_edit_btn",sShowDebugEditor);
+	}
 }
 
 void LLPanelOutfitsInventory::setParent(LLSidepanelAppearance* parent)
 	mListCommands->childSetAction("add_btn", boost::bind(&LLPanelOutfitsInventory::onAddButtonClick, this));
 	mListCommands->childSetAction("wear_btn", boost::bind(&LLPanelOutfitsInventory::onWearButtonClick, this));
 
-	childSetAction("look_edit_btn", boost::bind(&LLPanelOutfitsInventory::onSelectorButtonClicked, this));
+	mListCommands->childSetAction("look_edit_btn", boost::bind(&LLPanelOutfitsInventory::onSelectorButtonClicked, this));
 
 	LLDragAndDropButton* trash_btn = mListCommands->getChild<LLDragAndDropButton>("trash_btn");
 	trash_btn->setDragAndDropHandler(boost::bind(&LLPanelOutfitsInventory::handleDragAndDropToTrash, this

indra/newview/skins/default/xui/en/panel_outfits_inventory.xml

         name="cof_accordionpanel"
         start_folder="Current Outfit" />
    </tab_container>
-   <button
-     follows="bottom|left" 
-     height="18" 
-     label="edit look"
-     layout="topleft"
-     left="10"
-     name="look_edit_btn"
-     top_pad="10"
-     visible="false"
-     width="90" />
 	<panel
 	  background_visible="true"
 	  follows="bottom|left"
 		right="-5"
 		top_pad="0"
 		width="90" />
+      <button
+       follows="bottom|left" 
+       height="23" 
+       label="edit look"
+       layout="topleft"
+       left_pad="-200"
+       name="look_edit_btn"
+       visible="false"
+       width="90" />
 	 </panel>
 </panel>