aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterinspect.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/newview/llfloaterinspect.cpp
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/newview/llfloaterinspect.cpp')
-rw-r--r--linden/indra/newview/llfloaterinspect.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/newview/llfloaterinspect.cpp b/linden/indra/newview/llfloaterinspect.cpp
index 85cfc4e..c926afa 100644
--- a/linden/indra/newview/llfloaterinspect.cpp
+++ b/linden/indra/newview/llfloaterinspect.cpp
@@ -74,18 +74,21 @@ BOOL LLFloaterInspect::isVisible()
74 74
75void LLFloaterInspect::show(void* ignored) 75void LLFloaterInspect::show(void* ignored)
76{ 76{
77 if(sInstance) 77 // setForceSelection ensures that the pie menu does not deselect things when it
78 { 78 // looses the focus (this can happen with "select own objects only" enabled
79 sInstance->open(); 79 // VWR-1471
80 } 80 BOOL forcesel = gSelectMgr->setForceSelection(TRUE);
81 else 81
82 if (!sInstance) // first use
82 { 83 {
83 LLFloaterInspect* self = new LLFloaterInspect; 84 sInstance = new LLFloaterInspect;
84 self->open();
85 } 85 }
86 86
87 sInstance->mObjectSelection = gSelectMgr->getSelection(); 87 sInstance->open();
88 select_tool(gToolInspect); 88 select_tool(gToolInspect);
89 gSelectMgr->setForceSelection(forcesel); // restore previouis value
90
91 sInstance->mObjectSelection = gSelectMgr->getSelection();
89 sInstance->refresh(); 92 sInstance->refresh();
90} 93}
91 94