diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-03-13 02:48:32 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-13 02:48:32 +0000 |
| commit | 692f9e2951a8bf600f95bb0b76c18df71c881504 (patch) | |
| tree | 740b3d2853bfd7ea47d86f4d20024a0647caec53 /src/wx/cinema_dialog.cc | |
| parent | 1a1d4b22589d5832dd594a65054d9261f9f496cf (diff) | |
Ignore empty KDM email addresses (#818).
Diffstat (limited to 'src/wx/cinema_dialog.cc')
| -rw-r--r-- | src/wx/cinema_dialog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/cinema_dialog.cc b/src/wx/cinema_dialog.cc index 6fb4acc6b..c0b7b5242 100644 --- a/src/wx/cinema_dialog.cc +++ b/src/wx/cinema_dialog.cc @@ -20,6 +20,7 @@ #include "cinema_dialog.h" #include "wx_util.h" #include "lib/dcpomatic_assert.h" +#include "lib/util.h" #include <boost/foreach.hpp> using std::string; @@ -63,7 +64,7 @@ CinemaDialog::CinemaDialog (wxWindow* parent, string title, string name, list<st vector<string> columns; columns.push_back (wx_to_std (_("Address"))); _email_list = new EditableList<string, EmailDialog> ( - this, columns, bind (&CinemaDialog::get_emails, this), bind (&CinemaDialog::set_emails, this, _1), bind (&column, _1) + this, columns, bind (&CinemaDialog::get_emails, this), bind (&CinemaDialog::set_emails, this, _1), bind (&string_not_empty, _1), bind (&column, _1) ); sizer->Add (_email_list, wxGBPosition (r, 0), wxGBSpan (1, 2), wxEXPAND); |
