X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwx_util.cc;h=c0f90bd251083676377928818d39d1795c81aa0a;hb=d464a939f9f851e835b2a4926fafd6eadaa183de;hp=5f5a96a46a6f956cfcf30ebbfd7ea78762d8de6c;hpb=4790b63ceadc38fba77954f531a455fff28f8b13;p=dcpomatic.git diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 5f5a96a46..c0f90bd25 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -222,14 +222,14 @@ string_client_data (wxClientData* o) void checked_set (FilePickerCtrl* widget, boost::filesystem::path value) { - if (widget->GetPath() != std_to_wx (value.string())) { + if (widget->path() != value) { if (value.empty()) { /* Hack to make wxWidgets clear the control when we are passed an empty value. */ value = " "; } - widget->SetPath (std_to_wx (value.string())); + widget->set_path(value); } }