aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertelehub.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llfloatertelehub.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llfloatertelehub.cpp')
-rw-r--r--linden/indra/newview/llfloatertelehub.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloatertelehub.cpp b/linden/indra/newview/llfloatertelehub.cpp
index 9fa614c..150e369 100644
--- a/linden/indra/newview/llfloatertelehub.cpp
+++ b/linden/indra/newview/llfloatertelehub.cpp
@@ -58,8 +58,8 @@ void LLFloaterTelehub::show()
58 sInstance = new LLFloaterTelehub(); 58 sInstance = new LLFloaterTelehub();
59 59
60 // Show tools floater by selecting translate (select) tool 60 // Show tools floater by selecting translate (select) tool
61 gCurrentToolset = gBasicToolset; 61 gToolMgr->setCurrentToolset(gBasicToolset);
62 gCurrentToolset->selectTool( gToolTranslate ); 62 gToolMgr->getCurrentToolset()->selectTool( gToolTranslate );
63 63
64 // Find tools floater, glue to bottom 64 // Find tools floater, glue to bottom
65 if (gFloaterTools) 65 if (gFloaterTools)
@@ -101,6 +101,8 @@ LLFloaterTelehub::LLFloaterTelehub()
101 // otherwise you can't walk with arrow keys while floater is up 101 // otherwise you can't walk with arrow keys while floater is up
102 list->setAllowKeyboardMovement(FALSE); 102 list->setAllowKeyboardMovement(FALSE);
103 } 103 }
104
105 mObjectSelection = gSelectMgr->getEditSelection();
104} 106}
105 107
106LLFloaterTelehub::~LLFloaterTelehub() 108LLFloaterTelehub::~LLFloaterTelehub()
@@ -123,10 +125,10 @@ void LLFloaterTelehub::draw()
123// Per-frame updates, because we don't have a selection manager observer. 125// Per-frame updates, because we don't have a selection manager observer.
124void LLFloaterTelehub::refresh() 126void LLFloaterTelehub::refresh()
125{ 127{
126 LLViewerObject* object = gSelectMgr->getFirstRootObject(); 128 LLViewerObject* object = mObjectSelection->getFirstRootObject();
127 if(!object) 129 if(!object)
128 { 130 {
129 object = gSelectMgr->getFirstObject(); 131 object = mObjectSelection->getFirstObject();
130 } 132 }
131 133
132 BOOL have_selection = (object != NULL); 134 BOOL have_selection = (object != NULL);
@@ -241,8 +243,8 @@ void LLFloaterTelehub::onClickRemoveSpawnPoint(void* data)
241 msg->nextBlock("ParamList"); 243 msg->nextBlock("ParamList");
242 msg->addString("Parameter", "spawnpoint remove"); 244 msg->addString("Parameter", "spawnpoint remove");
243 245
244 char buffer[MAX_STRING]; 246 char buffer[MAX_STRING]; /* Flawfinder: ignore */
245 sprintf(buffer, "%d", spawn_index); 247 snprintf(buffer, MAX_STRING, "%d", spawn_index); /* Flawfinder: ignore */
246 msg->nextBlock("ParamList"); 248 msg->nextBlock("ParamList");
247 msg->addString("Parameter", buffer); 249 msg->addString("Parameter", buffer);
248 250
@@ -260,7 +262,7 @@ void LLFloaterTelehub::processTelehubInfo(LLMessageSystem* msg, void**)
260 262
261void LLFloaterTelehub::unpackTelehubInfo(LLMessageSystem* msg) 263void LLFloaterTelehub::unpackTelehubInfo(LLMessageSystem* msg)
262{ 264{
263 char buffer[MAX_STRING]; 265 char buffer[MAX_STRING]; /* Flawfinder: ignore */
264 266
265 msg->getUUID("TelehubBlock", "ObjectID", mTelehubObjectID); 267 msg->getUUID("TelehubBlock", "ObjectID", mTelehubObjectID);
266 msg->getString("TelehubBlock", "ObjectName", MAX_STRING, buffer); 268 msg->getString("TelehubBlock", "ObjectName", MAX_STRING, buffer);