Build fixes for Boost >= 1.73
[dcpomatic.git] / src / wx / save_template_dialog.cc
index 23dc0a85a85fe8d2b4319f03168f8fa1d7fc0180..0440063508dfc2df05b924e3519b54fca25b6c7c 100644 (file)
@@ -24,6 +24,9 @@
 #include <boost/foreach.hpp>
 
 using std::string;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 SaveTemplateDialog::SaveTemplateDialog (wxWindow* parent)
        : TableDialog (parent, _("Save template"), 2, 1, true)
@@ -34,7 +37,7 @@ SaveTemplateDialog::SaveTemplateDialog (wxWindow* parent)
        layout ();
 
        wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
-       ok->Bind (wxEVT_COMMAND_BUTTON_CLICKED, bind (&SaveTemplateDialog::check, this, _1));
+       ok->Bind (wxEVT_BUTTON, bind (&SaveTemplateDialog::check, this, _1));
 }
 
 string