From 28d8d4e7664bcd6c8369cc18832e42096af7cad2 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:01 -0500 Subject: Second Life viewer sources 1.17.3.0 --- linden/indra/newview/llfloatertopobjects.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'linden/indra/newview/llfloatertopobjects.cpp') diff --git a/linden/indra/newview/llfloatertopobjects.cpp b/linden/indra/newview/llfloatertopobjects.cpp index 6212ce9..53d00fc 100644 --- a/linden/indra/newview/llfloatertopobjects.cpp +++ b/linden/indra/newview/llfloatertopobjects.cpp @@ -370,19 +370,22 @@ void LLFloaterTopObjects::onDisableSelected(void* data) sInstance->doToObjects(ACTION_DISABLE, false); } +//static void LLFloaterTopObjects::clearList() { - LLCtrlListInterface *list = childGetListInterface("objects_list"); + LLCtrlListInterface *list = sInstance->childGetListInterface("objects_list"); if (list) { list->operateOnAll(LLCtrlListInterface::OP_DELETE); } - mObjectListData.clear(); - mObjectListIDs.clear(); + sInstance->mObjectListData.clear(); + sInstance->mObjectListIDs.clear(); + sInstance->mtotalScore = 0.f; } +//static void LLFloaterTopObjects::onRefresh(void* data) { U32 mode = STAT_REPORT_TOP_SCRIPTS; @@ -397,8 +400,6 @@ void LLFloaterTopObjects::onRefresh(void* data) sInstance->clearList(); } - sInstance->mtotalScore = 0.f; - LLMessageSystem *msg = gMessageSystem; msg->newMessageFast(_PREHASH_LandStatRequest); msg->nextBlockFast(_PREHASH_AgentData); -- cgit v1.1