Fix lots of macOS warnings by using a different boost/bind include.
[dcpomatic.git] / src / wx / markers_dialog.cc
index 724cb7d9efa51508b2244c743d57746987aa7d30..c8529f108f64bc00b8d65c17a6a1e4a046332301 100644 (file)
@@ -28,7 +28,7 @@
 #include "lib/film.h"
 #include <dcp/types.h>
 #include <wx/gbsizer.h>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
 #include <iostream>
 
 using std::cout;
@@ -36,6 +36,7 @@ using boost::bind;
 using boost::shared_ptr;
 using boost::weak_ptr;
 using boost::optional;
+using dcpomatic::DCPTime;
 
 class Marker
 {
@@ -82,6 +83,7 @@ private:
                shared_ptr<FilmViewer> v = viewer.lock ();
                DCPOMATIC_ASSERT (v);
                timecode->set (v->position(), f->video_frame_rate());
+               changed ();
        }
 
        void changed ()
@@ -99,7 +101,7 @@ private:
        weak_ptr<FilmViewer> viewer;
        dcp::Marker type;
        CheckBox* checkbox;
-       Timecode<DCPTime>* timecode;
+       Timecode<dcpomatic::DCPTime>* timecode;
        Button* set_button;
 };