Fix use-own-dirpicker build. v2.15.156
authorCarl Hetherington <cth@carlh.net>
Thu, 15 Jul 2021 16:32:23 +0000 (18:32 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 15 Jul 2021 16:32:37 +0000 (18:32 +0200)
src/wx/dir_picker_ctrl.cc
src/wx/dir_picker_ctrl.h

index 0a7b7a9..feb11a5 100644 (file)
@@ -67,6 +67,8 @@ DirPickerCtrl::SetPath (wxString p)
 
        _sizer->Layout ();
        SetMinSize (wxSize (max (400, _sizer->GetSize().GetWidth()), -1));
+
+       Changed ();
 }
 
 wxString
index 83fe57a..34f46b2 100644 (file)
@@ -25,6 +25,7 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
+#include <boost/signals2.hpp>
 
 class DirPickerCtrl : public wxPanel
 {
@@ -34,6 +35,8 @@ public:
        wxString GetPath () const;
        void SetPath (wxString);
 
+       boost::signals2::signal<void ()> Changed;
+
 private:
        void browse_clicked ();