diff options
Diffstat (limited to 'linden/indra/newview/llcompilequeue.cpp')
-rw-r--r-- | linden/indra/newview/llcompilequeue.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/linden/indra/newview/llcompilequeue.cpp b/linden/indra/newview/llcompilequeue.cpp index fc2742f..00ca833 100644 --- a/linden/indra/newview/llcompilequeue.cpp +++ b/linden/indra/newview/llcompilequeue.cpp | |||
@@ -60,6 +60,8 @@ | |||
60 | #include "llviewerstats.h" | 60 | #include "llviewerstats.h" |
61 | #include "lluictrlfactory.h" | 61 | #include "lluictrlfactory.h" |
62 | 62 | ||
63 | #include "llselectmgr.h" | ||
64 | |||
63 | ///---------------------------------------------------------------------------- | 65 | ///---------------------------------------------------------------------------- |
64 | /// Local function declarations, constants, enums, and typedefs | 66 | /// Local function declarations, constants, enums, and typedefs |
65 | ///---------------------------------------------------------------------------- | 67 | ///---------------------------------------------------------------------------- |
@@ -194,7 +196,20 @@ BOOL LLFloaterScriptQueue::start() | |||
194 | { | 196 | { |
195 | //llinfos << "LLFloaterCompileQueue::start()" << llendl; | 197 | //llinfos << "LLFloaterCompileQueue::start()" << llendl; |
196 | std::string buffer; | 198 | std::string buffer; |
197 | buffer = llformat("Starting %s of %d items.", mStartString.c_str(), mObjectIDs.count()); // *TODO: Translate | 199 | |
200 | LLSelectMgr *mgr = LLSelectMgr::getInstance(); | ||
201 | LLObjectSelectionHandle selectHandle = mgr->getSelection(); | ||
202 | U32 n_objects = 0; | ||
203 | if (gSavedSettings.getBOOL("EditLinkedParts")) | ||
204 | { | ||
205 | n_objects = selectHandle->getObjectCount(); | ||
206 | } | ||
207 | else | ||
208 | { | ||
209 | n_objects = selectHandle->getRootObjectCount(); | ||
210 | } | ||
211 | |||
212 | buffer = llformat("Starting %s of %d items.", mStartString.c_str(), n_objects); // *TODO: Translate | ||
198 | 213 | ||
199 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output"); | 214 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output"); |
200 | list->addCommentText(buffer); | 215 | list->addCommentText(buffer); |