From 8038cbcf0e2ee23b3337a2ec0106ec4284d52c29 Mon Sep 17 00:00:00 2001 From: Leyla Farazha Date: Wed, 21 Jul 2010 16:59:59 -0700 Subject: DEV-50472 Transaction notifications wrap and amounts cannot be seen in notifications list --- indra/newview/llviewermessage.cpp | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 490b3c7f0a..1488bc8350 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5088,13 +5088,29 @@ static void process_money_balance_reply_extended(LLMessageSystem* msg) return; } - const char* source_type = (is_source_group ? "group" : "agent"); - std::string source_slurl = - LLSLURL( source_type, source_id, "inspect").getSLURLString(); - - const char* dest_type = (is_dest_group ? "group" : "agent"); - std::string dest_slurl = - LLSLURL( dest_type, dest_id, "completename").getSLURLString(); + std::string source_slurl; + if (is_source_group) + { + source_slurl = + LLSLURL( "group", source_id, "inspect").getSLURLString(); + } + else + { + source_slurl = + LLSLURL( "agent", source_id, "completename").getSLURLString(); + } + + std::string dest_slurl; + if (is_dest_group) + { + dest_slurl = + LLSLURL( "group", dest_id, "inspect").getSLURLString(); + } + else + { + dest_slurl = + LLSLURL( "agent", dest_id, "completename").getSLURLString(); + } std::string reason = reason_from_transaction_type(transaction_type, item_description); -- cgit v1.2.3