aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterreporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterreporter.cpp')
-rw-r--r--linden/indra/newview/llfloaterreporter.cpp28
1 files changed, 22 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloaterreporter.cpp b/linden/indra/newview/llfloaterreporter.cpp
index 3a9829d..e8643c0 100644
--- a/linden/indra/newview/llfloaterreporter.cpp
+++ b/linden/indra/newview/llfloaterreporter.cpp
@@ -389,21 +389,36 @@ void LLFloaterReporter::onClickSend(void *userdata)
389 // only show copyright alert for abuse reports 389 // only show copyright alert for abuse reports
390 if ( self->mReportType != BUG_REPORT ) 390 if ( self->mReportType != BUG_REPORT )
391 { 391 {
392 const int IP_CONTENT_REMOVAL = 66;
393 const int IP_PERMISSONS_EXPLOIT = 37;
394 LLComboBox* combo = self->getChild<LLComboBox>( "category_combo");
395 int category_value = combo->getSelectedValue().asInteger();
396
392 if ( ! self->mCopyrightWarningSeen ) 397 if ( ! self->mCopyrightWarningSeen )
393 { 398 {
399
394 std::string details_lc = self->childGetText("details_edit"); 400 std::string details_lc = self->childGetText("details_edit");
395 LLStringUtil::toLower( details_lc ); 401 LLStringUtil::toLower( details_lc );
396 std::string summary_lc = self->childGetText("summary_edit"); 402 std::string summary_lc = self->childGetText("summary_edit");
397 LLStringUtil::toLower( summary_lc ); 403 LLStringUtil::toLower( summary_lc );
398 if ( details_lc.find( "copyright" ) != std::string::npos || 404 if ( details_lc.find( "copyright" ) != std::string::npos ||
399 summary_lc.find( "copyright" ) != std::string::npos ) 405 summary_lc.find( "copyright" ) != std::string::npos ||
406 category_value == IP_CONTENT_REMOVAL ||
407 category_value == IP_PERMISSONS_EXPLOIT)
400 { 408 {
401 gViewerWindow->alertXml("HelpReportAbuseContainsCopyright"); 409 gViewerWindow->alertXml("HelpReportAbuseContainsCopyright");
402 self->mCopyrightWarningSeen = TRUE; 410 self->mCopyrightWarningSeen = TRUE;
403 return; 411 return;
404 }; 412 }
405 }; 413 }
406 }; 414 else if (category_value == IP_CONTENT_REMOVAL)
415 {
416 // IP_CONTENT_REMOVAL *always* shows the dialog -
417 // ergo you can never send that abuse report type.
418 gViewerWindow->alertXml("HelpReportAbuseContainsCopyright");
419 return;
420 }
421 }
407 422
408 LLUploadDialog::modalUploadDialog("Uploading...\n\nReport"); 423 LLUploadDialog::modalUploadDialog("Uploading...\n\nReport");
409 // *TODO don't upload image if checkbox isn't checked 424 // *TODO don't upload image if checkbox isn't checked
@@ -937,11 +952,12 @@ void LLFloaterReporter::uploadDoneCallback(const LLUUID &uuid, void *user_data,
937 if(result < 0) 952 if(result < 0)
938 { 953 {
939 LLStringUtil::format_map_t args; 954 LLStringUtil::format_map_t args;
940 args["[REASON]"] = std::string(LLAssetStorage::getErrorString(result)); 955 std::string reason = std::string(LLAssetStorage::getErrorString(result));
956 args["[REASON]"] = reason;
941 gViewerWindow->alertXml("ErrorUploadingReportScreenshot", args); 957 gViewerWindow->alertXml("ErrorUploadingReportScreenshot", args);
942 958
943 std::string err_msg("There was a problem uploading a report screenshot"); 959 std::string err_msg("There was a problem uploading a report screenshot");
944 err_msg += " due to the following reason: " + args["[REASON]"]; 960 err_msg += " due to the following reason: " + reason;
945 llwarns << err_msg << llendl; 961 llwarns << err_msg << llendl;
946 return; 962 return;
947 } 963 }