aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterreporter.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-10-17 15:56:48 -0500
committerJacek Antonelli2008-10-17 15:56:56 -0500
commit4270407eca97bc2275f920a6452d6d5490875779 (patch)
treed1068f0057bd436e3a2a38303d68b2c08239ae5a /linden/indra/newview/llfloaterreporter.cpp
parentSecond Life viewer sources 1.21.5-RC (diff)
downloadmeta-impy-4270407eca97bc2275f920a6452d6d5490875779.zip
meta-impy-4270407eca97bc2275f920a6452d6d5490875779.tar.gz
meta-impy-4270407eca97bc2275f920a6452d6d5490875779.tar.bz2
meta-impy-4270407eca97bc2275f920a6452d6d5490875779.tar.xz
Second Life viewer sources 1.21.6
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterreporter.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/linden/indra/newview/llfloaterreporter.cpp b/linden/indra/newview/llfloaterreporter.cpp
index 78f5623..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