summaryrefslogtreecommitdiff
path: root/src/wx/dir_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-13 02:44:20 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-13 03:12:40 +0100
commit3d28c0349b3192fe406796096d1028d90d12dbdd (patch)
tree105f5bfba1623a4000a2a0c72efa88afb955bd0d /src/wx/dir_dialog.cc
parentd06dfa960401ebc21fed2f973498b680c1f87f59 (diff)
Fix old macOS build.
Diffstat (limited to 'src/wx/dir_dialog.cc')
-rw-r--r--src/wx/dir_dialog.cc8
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;
}