From 8282169ec34b0186f5052a2d931360779c932492 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 11 Nov 2023 22:54:51 +0100 Subject: [PATCH] Add FileDialog::path(). --- src/wx/file_dialog.cc | 7 +++++++ src/wx/file_dialog.h | 1 + 2 files changed, 8 insertions(+) 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: -- 2.30.2