Fix default directory for film's setup on Windows (#49).
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Feb 2013 20:21:22 +0000 (20:21 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Feb 2013 20:21:22 +0000 (20:21 +0000)
src/wx/dir_picker_ctrl.cc

index b6558a881eee90169ba681cc9ff8757ff2a0b01a..ec7854764e048c435819e129467c33a051f0a28f 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <wx/wx.h>
 #include <wx/stdpaths.h>
+#include <wx/filepicker.h>
 #include <boost/filesystem.hpp>
 #include "dir_picker_ctrl.h"
 #include "wx_util.h"
@@ -52,6 +53,9 @@ DirPickerCtrl::SetPath (wxString p)
        } else {
                _folder->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf().string()));
        }
+
+       wxCommandEvent ev (wxEVT_COMMAND_DIRPICKER_CHANGED, wxID_ANY);
+       GetEventHandler()->ProcessEvent (ev);
 }
 
 wxString