summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterinspect.cpp
diff options
context:
space:
mode:
authorAustin Doupnik <austin@lindenlab.com>2009-07-09 22:35:39 +0000
committerAustin Doupnik <austin@lindenlab.com>2009-07-09 22:35:39 +0000
commitb742355130decb1b39d6f95871d4fb575cdd3d65 (patch)
tree22d416f202bae948abbe7110ae4b08f65930674c /indra/newview/llfloaterinspect.cpp
parentee24bbdd482f4d183b92221ebef15d9555860534 (diff)
DEV-35167 Reference counted selection objects were being kept around by floaters that were being constructed, but weren't visible. Reviewed by Richard.
Diffstat (limited to 'indra/newview/llfloaterinspect.cpp')
-rw-r--r--indra/newview/llfloaterinspect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llfloaterinspect.cpp b/indra/newview/llfloaterinspect.cpp
index 9f8446210e..972b3b9528 100644
--- a/indra/newview/llfloaterinspect.cpp
+++ b/indra/newview/llfloaterinspect.cpp
@@ -66,7 +66,6 @@ BOOL LLFloaterInspect::postBuild()
// childSetAction("button creator",onClickCreatorProfile, this);
// childSetCommitCallback("object_list", onSelectObject, NULL);
- mObjectSelection = LLSelectMgr::getInstance()->getSelection();
refresh();
return TRUE;
@@ -120,6 +119,8 @@ void LLFloaterInspect::onOpen(const LLSD& key)
BOOL forcesel = LLSelectMgr::getInstance()->setForceSelection(TRUE);
LLToolMgr::getInstance()->setTransientTool(LLToolCompInspect::getInstance());
LLSelectMgr::getInstance()->setForceSelection(forcesel); // restore previouis value
+ mObjectSelection = LLSelectMgr::getInstance()->getSelection();
+ refresh();
}
void LLFloaterInspect::onClickCreatorProfile()
{