summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneloutfitsinventory.cpp
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2009-12-16 14:23:58 -0500
committerNyx (Neal Orman) <nyx@lindenlab.com>2009-12-16 14:23:58 -0500
commit9571dcfed6e12f23b170ddbc6d0fba93a96e657c (patch)
tree86eb2a0a6bdd25182ecf181ecb7657144bc22b4d /indra/newview/llpaneloutfitsinventory.cpp
parentee80fb64afc9725a12e37e14001a15542dc7ca3d (diff)
EXT-3514 update debug settings for appearance
fixing layout issues with previous patch to avoid breaking the bottom buttons reviewed by vir --HG-- branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llpaneloutfitsinventory.cpp')
-rw-r--r--indra/newview/llpaneloutfitsinventory.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpaneloutfitsinventory.cpp b/indra/newview/llpaneloutfitsinventory.cpp
index a6388164d5..6ab9870b06 100644
--- a/indra/newview/llpaneloutfitsinventory.cpp
+++ b/indra/newview/llpaneloutfitsinventory.cpp
@@ -90,7 +90,10 @@ void LLPanelOutfitsInventory::updateVerbs()
mParent->updateVerbs();
}
- childSetVisible("look_edit_btn",sShowDebugEditor);
+ if (mListCommands)
+ {
+ mListCommands->childSetVisible("look_edit_btn",sShowDebugEditor);
+ }
}
void LLPanelOutfitsInventory::setParent(LLSidepanelAppearance* parent)
@@ -239,7 +242,7 @@ void LLPanelOutfitsInventory::initListCommandsHandlers()
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