X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fwx_util.cc;h=d7620eff40acf0079c53fa858aacca03ab16fd8e;hb=d9d3bbbba5b0be7d0818d573463d96805a377310;hp=1e990c49515c13393c403c3e7c7680f807e6f3a3;hpb=7ddba2932f3e577ecde3324a2094037252bdde18;p=dcpomatic.git diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 1e990c495..d7620eff4 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -21,12 +21,12 @@ * @brief Some utility functions and classes. */ -#include -#include -#include +#include "wx_util.h" +#include "file_picker_ctrl.h" #include "lib/config.h" #include "lib/util.h" -#include "wx_util.h" +#include +#include using namespace std; using namespace boost; @@ -136,16 +136,16 @@ string_client_data (wxClientData* o) } void -checked_set (wxFilePickerCtrl* widget, string value) +checked_set (FilePickerCtrl* widget, boost::filesystem::path value) { - if (widget->GetPath() != std_to_wx (value)) { + if (widget->GetPath() != std_to_wx (value.string())) { if (value.empty()) { /* Hack to make wxWidgets clear the control when we are passed an empty value. */ value = " "; } - widget->SetPath (std_to_wx (value)); + widget->SetPath (std_to_wx (value.string())); } }