summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-10-10 18:35:33 +0100
committerCarl Hetherington <cth@carlh.net>2016-10-10 18:35:33 +0100
commitc7e9b9a5c9d39e703fcd98b0bfdba2197a34108d (patch)
tree61f21608247c310fa1d5963eaf35d625fb3a5d4d /src
parent02f76e091def9338dae85b0354d9bfc14140e65d (diff)
Try harder to stop people entering my email address as a contact when reporting a problem.
Diffstat (limited to 'src')
-rw-r--r--src/wx/report_problem_dialog.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc
index 68411ee91..7519259eb 100644
--- a/src/wx/report_problem_dialog.cc
+++ b/src/wx/report_problem_dialog.cc
@@ -63,7 +63,7 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr<Film> fil
_table->Add (_send_logs, 1, wxEXPAND);
_table->AddSpacer (0);
- add_label_to_sizer (_table, this, _("Contact email"), true);
+ add_label_to_sizer (_table, this, _("Your email address"), true);
_email = new wxTextCtrl (this, wxID_ANY, wxT (""));
_email->SetValue (std_to_wx (Config::instance()->kdm_from ()));
_table->Add (_email, 1, wxEXPAND);
@@ -103,5 +103,10 @@ ReportProblemDialog::report ()
return;
}
+ if (_email->GetValue() == "carl@dcpomatic.com" || _email->GetValue() == "cth@carlh.net") {
+ error_dialog (this, wxString::Format (_("Enter your email address for the contact, not %s"), _email->GetValue().data()));
+ return;
+ }
+
JobManager::instance()->add (shared_ptr<Job> (new SendProblemReportJob (_film, wx_to_std (_email->GetValue ()), wx_to_std (_summary->GetValue ()))));
}