diff options
author | Steven Bennetts <steve@lindenlab.com> | 2008-09-12 06:27:13 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2008-09-12 06:27:13 +0000 |
commit | da94c0eaa2ce2711f0ae26968e87ef3e409126a9 (patch) | |
tree | e0b23896f17e0a0ea60160b2c7e39331f3cb9668 /indra/newview/llfloatertopobjects.cpp | |
parent | 642cdd95726755b7c24c7f2b25e2fea8e49b5b9b (diff) |
QAR-855 Viewer 1.21 RC 2
merge viewer_1-21 94770-96059 -> release
Diffstat (limited to 'indra/newview/llfloatertopobjects.cpp')
-rw-r--r-- | indra/newview/llfloatertopobjects.cpp | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/indra/newview/llfloatertopobjects.cpp b/indra/newview/llfloatertopobjects.cpp index 670541abe4..02ea02a291 100644 --- a/indra/newview/llfloatertopobjects.cpp +++ b/indra/newview/llfloatertopobjects.cpp @@ -157,8 +157,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data) msg->getU32Fast(_PREHASH_RequestData, _PREHASH_TotalObjectCount, total_count); msg->getU32Fast(_PREHASH_RequestData, _PREHASH_ReportType, mCurrentMode); - LLCtrlListInterface *list = childGetListInterface("objects_list"); - if (!list) return; + LLScrollListCtrl *list = getChild<LLScrollListCtrl>("objects_list"); S32 block_count = msg->getNumberOfBlocks("ReportData"); for (S32 block = 0; block < block_count; ++block) @@ -206,16 +205,16 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data) element["columns"][3]["column"] = "location"; element["columns"][3]["value"] = llformat("<%0.1f,%0.1f,%0.1f>", location_x, location_y, location_z); element["columns"][3]["font"] = "SANSSERIF"; - element["columns"][3]["column"] = "time"; - element["columns"][3]["value"] = formatted_time((time_t)time_stamp); - element["columns"][3]["font"] = "SANSSERIF"; + element["columns"][4]["column"] = "time"; + element["columns"][4]["value"] = formatted_time((time_t)time_stamp); + element["columns"][4]["font"] = "SANSSERIF"; if (mCurrentMode == STAT_REPORT_TOP_SCRIPTS && have_extended_data) { - element["columns"][4]["column"] = "Mono Time"; - element["columns"][4]["value"] = llformat("%0.3f", mono_score); - element["columns"][4]["font"] = "SANSSERIF"; + element["columns"][5]["column"] = "Mono Time"; + element["columns"][5]["value"] = llformat("%0.3f", mono_score); + element["columns"][5]["font"] = "SANSSERIF"; } list->addElement(element); @@ -228,13 +227,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data) if (total_count == 0 && list->getItemCount() == 0) { - LLSD element; - element["id"] = LLUUID::null; - element["columns"][0]["column"] = "name"; - element["columns"][0]["value"] = getString("none_descriptor"); - element["columns"][0]["font"] = "SANSSERIF"; - - list->addElement(element); + list->addCommentText(getString("none_descriptor")); } else { |