X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Freport_problem_dialog.cc;h=77540fcbc8eedee93da2f0d5bdff41cede73fd74;hb=46b685dd4e2b40c0c79009f390befa10c5c17bfc;hp=3345e21f0ad6519147740ca37a554810219175e2;hpb=aaf5f717651592df9292268b46f3b3ce09b36109;p=dcpomatic.git diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc index 3345e21f0..77540fcbc 100644 --- a/src/wx/report_problem_dialog.cc +++ b/src/wx/report_problem_dialog.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2014-2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -27,7 +28,9 @@ using std::string; using boost::shared_ptr; -/** @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) @@ -62,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); @@ -102,5 +105,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 (new SendProblemReportJob (_film, wx_to_std (_email->GetValue ()), wx_to_std (_summary->GetValue ())))); }