From 78aec043f35b8b07dc0f2ba39baba737dd57555e Mon Sep 17 00:00:00 2001 From: Josh Bell Date: Wed, 21 Nov 2007 02:10:12 +0000 Subject: svn merge -r 73148:74186 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-18-5-Viewer --> release --- indra/newview/llclassifiedstatsresponder.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'indra/newview/llclassifiedstatsresponder.cpp') diff --git a/indra/newview/llclassifiedstatsresponder.cpp b/indra/newview/llclassifiedstatsresponder.cpp index 3a31074ed0..7a575ca5fd 100644 --- a/indra/newview/llclassifiedstatsresponder.cpp +++ b/indra/newview/llclassifiedstatsresponder.cpp @@ -19,14 +19,14 @@ #include "llview.h" #include "message.h" -LLClassifiedStatsResponder::LLClassifiedStatsResponder(LLViewHandle classified_panel_handle) -: mClassifiedPanelHandle(classified_panel_handle) +LLClassifiedStatsResponder::LLClassifiedStatsResponder(LLViewHandle classified_panel_handle, LLUUID classified_id) +: mClassifiedPanelHandle(classified_panel_handle), +mClassifiedID(classified_id) { } /*virtual*/ void LLClassifiedStatsResponder::result(const LLSD& content) { - LLUUID classified_id = content["classified_id"]; S32 teleport = content["teleport_clicks"].asInteger(); S32 map = content["map_clicks"].asInteger(); S32 profile = content["profile_clicks"].asInteger(); @@ -34,16 +34,15 @@ void LLClassifiedStatsResponder::result(const LLSD& content) S32 search_map = content["search_map_clicks"].asInteger(); S32 search_profile = content["search_profile_clicks"].asInteger(); - std::string msg = llformat("Clicks: %d teleport, %d map, %d profile", - teleport + search_teleport, - map + search_map, - profile + search_profile); - LLPanelClassified* classified_panelp = (LLPanelClassified*)LLPanel::getPanelByHandle(mClassifiedPanelHandle); if(classified_panelp) { - classified_panelp->setClickThroughText(msg); + classified_panelp->setClickThrough(mClassifiedID, + teleport + search_teleport, + map + search_map, + profile + search_profile, + true); } } @@ -55,3 +54,4 @@ void LLClassifiedStatsResponder::error(U32 status, const std::string& reason) << status << ": " << reason << ")" << llendl; } + -- cgit v1.2.3