X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Freport_problem_dialog.cc;h=77540fcbc8eedee93da2f0d5bdff41cede73fd74;hb=53c7f717da44c6ff681bde8946875e4f39764b25;hp=1a32e8fad3d0fe11ceee6b7e1a9850ac49a9437c;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;p=dcpomatic.git diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc index 1a32e8fad..77540fcbc 100644 --- a/src/wx/report_problem_dialog.cc +++ b/src/wx/report_problem_dialog.cc @@ -24,13 +24,13 @@ #include "lib/job_manager.h" #include "lib/send_problem_report_job.h" #include -#include using std::string; using boost::shared_ptr; -using boost::make_shared; -/** @param film Film that we are working on, or 0 */ +/** @param parent Parent window. + * @param film Film that we are working on, or 0. + */ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr film) : wxDialog (parent, wxID_ANY, _("Report A Problem")) , _film (film) @@ -65,7 +65,7 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr 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); @@ -105,5 +105,10 @@ ReportProblemDialog::report () return; } - JobManager::instance()->add (boost::make_shared (_film, wx_to_std (_email->GetValue ()), wx_to_std (_summary->GetValue ()))); + 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 (new SendProblemReportJob (_film, wx_to_std (_email->GetValue ()), wx_to_std (_summary->GetValue ())))); }