diff options
author | Austin Doupnik <austin@lindenlab.com> | 2009-07-08 22:36:39 +0000 |
---|---|---|
committer | Austin Doupnik <austin@lindenlab.com> | 2009-07-08 22:36:39 +0000 |
commit | 163f89d77fc0ed76a8c1e79049842394f129d16b (patch) | |
tree | 62d758d4b78379d37cb6bdd98263fa0496bdccae /indra/newview/llfloaterinspect.cpp | |
parent | ea1196cf01f3ff998e0d463ff2ebe29cef621362 (diff) |
DEV-34748 Moved logic for setting inspection tools from construction to onOpen for LLFloaterInspect. Reviewed by Richard.
Diffstat (limited to 'indra/newview/llfloaterinspect.cpp')
-rw-r--r-- | indra/newview/llfloaterinspect.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llfloaterinspect.cpp b/indra/newview/llfloaterinspect.cpp index aa615ef342..9f8446210e 100644 --- a/indra/newview/llfloaterinspect.cpp +++ b/indra/newview/llfloaterinspect.cpp @@ -66,9 +66,6 @@ BOOL LLFloaterInspect::postBuild() // childSetAction("button creator",onClickCreatorProfile, this); // childSetCommitCallback("object_list", onSelectObject, NULL); - BOOL forcesel = LLSelectMgr::getInstance()->setForceSelection(TRUE); - LLToolMgr::getInstance()->setTransientTool(LLToolCompInspect::getInstance()); - LLSelectMgr::getInstance()->setForceSelection(forcesel); // restore previouis value mObjectSelection = LLSelectMgr::getInstance()->getSelection(); refresh(); @@ -118,6 +115,12 @@ void LLFloaterInspect::show(void* ignored) sInstance->refresh(); } */ +void LLFloaterInspect::onOpen(const LLSD& key) +{ + BOOL forcesel = LLSelectMgr::getInstance()->setForceSelection(TRUE); + LLToolMgr::getInstance()->setTransientTool(LLToolCompInspect::getInstance()); + LLSelectMgr::getInstance()->setForceSelection(forcesel); // restore previouis value +} void LLFloaterInspect::onClickCreatorProfile() { if(mObjectList->getAllSelected().size() == 0) |