diff options
Diffstat (limited to 'linden/indra/newview/llfloaterreporter.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterreporter.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterreporter.cpp b/linden/indra/newview/llfloaterreporter.cpp index 412494e..31d658b 100644 --- a/linden/indra/newview/llfloaterreporter.cpp +++ b/linden/indra/newview/llfloaterreporter.cpp | |||
@@ -133,6 +133,23 @@ LLFloaterReporter::LLFloaterReporter( | |||
133 | 133 | ||
134 | childSetText("abuse_location_edit", gAgent.getSLURL() ); | 134 | childSetText("abuse_location_edit", gAgent.getSLURL() ); |
135 | 135 | ||
136 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-1.0.0a | ||
137 | if (rlv_handler_t::isEnabled()) | ||
138 | { | ||
139 | // Can't filter these since they get sent as part of the report so just hide them instead | ||
140 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
141 | { | ||
142 | childSetVisible("abuse_location_edit", false); | ||
143 | childSetVisible("pos_field", false); | ||
144 | } | ||
145 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
146 | { | ||
147 | childSetVisible("owner_name", false); | ||
148 | childSetVisible("abuser_name_edit", false); | ||
149 | } | ||
150 | } | ||
151 | // [/RLVa:KB] | ||
152 | |||
136 | LLButton* pick_btn = getChild<LLButton>("pick_btn"); | 153 | LLButton* pick_btn = getChild<LLButton>("pick_btn"); |
137 | if (pick_btn) | 154 | if (pick_btn) |
138 | { | 155 | { |
@@ -300,6 +317,12 @@ void LLFloaterReporter::getObjectInfo(const LLUUID& object_id) | |||
300 | if (regionp) | 317 | if (regionp) |
301 | { | 318 | { |
302 | childSetText("sim_field", regionp->getName()); | 319 | childSetText("sim_field", regionp->getName()); |
320 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
321 | if ( (rlv_handler_t::isEnabled()) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ) | ||
322 | { | ||
323 | childSetText("sim_field", rlv_handler_t::cstrHiddenRegion); | ||
324 | } | ||
325 | // [/RLVa:KB] | ||
303 | LLVector3d global_pos; | 326 | LLVector3d global_pos; |
304 | global_pos.setVec(objectp->getPositionRegion()); | 327 | global_pos.setVec(objectp->getPositionRegion()); |
305 | setPosBox(global_pos); | 328 | setPosBox(global_pos); |
@@ -323,6 +346,12 @@ void LLFloaterReporter::getObjectInfo(const LLUUID& object_id) | |||
323 | object_owner.append("Unknown"); | 346 | object_owner.append("Unknown"); |
324 | } | 347 | } |
325 | childSetText("object_name", object_owner); | 348 | childSetText("object_name", object_owner); |
349 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RVLa-1.0.0e | ||
350 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
351 | { | ||
352 | childSetVisible("object_name", false); // Hide the object name if the picked object represents an avataz | ||
353 | } | ||
354 | // [/RLVa:KB] | ||
326 | childSetText("owner_name", object_owner); | 355 | childSetText("owner_name", object_owner); |
327 | childSetText("abuser_name_edit", object_owner); | 356 | childSetText("abuser_name_edit", object_owner); |
328 | mAbuserID = object_id; | 357 | mAbuserID = object_id; |
@@ -595,6 +624,12 @@ LLFloaterReporter* LLFloaterReporter::createNewBugReporter() | |||
595 | void LLFloaterReporter::setPickedObjectProperties(const std::string& object_name, const std::string& owner_name, const LLUUID owner_id) | 624 | void LLFloaterReporter::setPickedObjectProperties(const std::string& object_name, const std::string& owner_name, const LLUUID owner_id) |
596 | { | 625 | { |
597 | childSetText("object_name", object_name); | 626 | childSetText("object_name", object_name); |
627 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RVLa-1.0.0e | ||
628 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
629 | { | ||
630 | childSetVisible("object_name", true); // Show the object name if the picked object is actually an object | ||
631 | } | ||
632 | // [/RLVa:KB] | ||
598 | childSetText("owner_name", owner_name); | 633 | childSetText("owner_name", owner_name); |
599 | childSetText("abuser_name_edit", owner_name); | 634 | childSetText("abuser_name_edit", owner_name); |
600 | mAbuserID = owner_id; | 635 | mAbuserID = owner_id; |