From 3d28c0349b3192fe406796096d1028d90d12dbdd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 13 Feb 2026 02:44:20 +0100 Subject: Fix old macOS build. --- src/tools/dcpomatic_verifier.cc | 4 ++++ src/wx/dir_dialog.cc | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'src') diff --git a/src/tools/dcpomatic_verifier.cc b/src/tools/dcpomatic_verifier.cc index 78f4b94ff..d24100ff3 100644 --- a/src/tools/dcpomatic_verifier.cc +++ b/src/tools/dcpomatic_verifier.cc @@ -146,7 +146,11 @@ public: add_label_to_sizer(dcp_sizer, _overall_panel, _("DCPs"), true, 0, wxALIGN_CENTER_VERTICAL); auto add = [this](wxWindow* parent) { +#if wxCHECK_VERSION(3, 1, 4) DirDialog dialog(parent, _("Select DCP(s)"), wxDD_MULTIPLE, "AddVerifierInputPath"); +#else + DirDialog dialog(parent, _("Select DCP(s)"), 0, "AddVerifierInputPath"); +#endif if (dialog.show()) { wxProgressDialog progress(variant::wx::dcpomatic(), _("Examining DCPs")); 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 DirDialog::paths() const { wxArrayString wx; +#if wxCHECK_VERSION(3, 1, 4) GetPaths(wx); +#else + wx.Append(GetPath()); +#endif vector 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; } -- cgit v1.2.3