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 0a7b7a943d85f69f9d5e6f304fdbba1ed001d537..feb11a52702b62538d0496f84473eda5cbfb349d 100644 (file)
@@ -67,6 +67,8 @@ DirPickerCtrl::SetPath (wxString p)
 
        _sizer->Layout ();
        SetMinSize (wxSize (max (400, _sizer->GetSize().GetWidth()), -1));
+
+       Changed ();
 }
 
 wxString
index 83fe57a170310dcf9e90928be3e73cf0b2a068c4..34f46b2dfc4b79c99b041e695f0b6af42d9dbc68 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 ();