From: Carl Hetherington Date: Sat, 11 Nov 2023 21:54:51 +0000 (+0100) Subject: Add FileDialog::path(). X-Git-Tag: v2.16.67~28 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=8282169ec34b0186f5052a2d931360779c932492;p=dcpomatic.git Add FileDialog::path(). --- diff --git a/src/wx/file_dialog.cc b/src/wx/file_dialog.cc index b65077784..bed8b4e0d 100644 --- a/src/wx/file_dialog.cc +++ b/src/wx/file_dialog.cc @@ -56,6 +56,13 @@ FileDialog::FileDialog( } +boost::filesystem::path +FileDialog::path() const +{ + return wx_to_std(GetPath()); +} + + vector FileDialog::paths() const { diff --git a/src/wx/file_dialog.h b/src/wx/file_dialog.h index cc6d720c1..022c3dbed 100644 --- a/src/wx/file_dialog.h +++ b/src/wx/file_dialog.h @@ -43,6 +43,7 @@ public: /** @return true if OK was clicked */ bool show(); + boost::filesystem::path path() const; std::vector paths() const; private: