summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-07-21 16:59:59 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-07-21 16:59:59 -0700
commit8038cbcf0e2ee23b3337a2ec0106ec4284d52c29 (patch)
tree898abf87e070ed4e4e70662fe6d86571e1de229b /indra
parent9b5004a72d9726a0f7372faf16218f2edadc875d (diff)
DEV-50472 Transaction notifications wrap and amounts cannot be seen in notifications list
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewermessage.cpp30
1 files 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);