diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-16 00:33:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-16 21:33:29 +0100 |
| commit | d464a939f9f851e835b2a4926fafd6eadaa183de (patch) | |
| tree | 824a491f85ef056d401b37f006bbced3f63919a5 /src/wx/wx_util.cc | |
| parent | 4790b63ceadc38fba77954f531a455fff28f8b13 (diff) | |
Cleanup: rename some methods in FilePickerCtrl and use boost::filesystem::path more.
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
