Fix failure to remove markers when the checkbox is unticked.
[dcpomatic.git] / src / wx / email_dialog.h
index 4fb08d28b848a30ef262abcec9cf0b9fc9be4abd..3f622f87d61cab0dd3d6be71fc69b860d10c9640 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "table_dialog.h"
+#include <boost/optional.hpp>
+
 
 class EmailDialog : public TableDialog
 {
 public:
-       EmailDialog (wxWindow *);
+       explicit EmailDialog (wxWindow *);
 
        void set (std::string);
-       std::string get () const;
+       boost::optional<std::string> get () const;
 
 private:
        wxTextCtrl* _email;
 };
+