diff options
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/dir_dialog.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/dir_dialog.cc b/src/wx/dir_dialog.cc index 869a86926..e5429fa77 100644 --- a/src/wx/dir_dialog.cc +++ b/src/wx/dir_dialog.cc @@ -68,7 +68,11 @@ vector<boost::filesystem::path> DirDialog::paths() const { wxArrayString wx; +#if wxCHECK_VERSION(3, 1, 4) GetPaths(wx); +#else + wx.Append(GetPath()); +#endif vector<boost::filesystem::path> std; for (size_t i = 0; i < wx.GetCount(); ++i) { @@ -90,7 +94,11 @@ DirDialog::show() return false; } +#if wxCHECK_VERSION(3, 1, 4) auto initial = GetWindowStyle() & wxDD_MULTIPLE ? paths()[0] : path(); +#else + auto initial = path(); +#endif Config::instance()->set_initial_path(_initial_path_key, initial.parent_path()); return true; } |
