Add FileDialog::path().
authorCarl Hetherington <cth@carlh.net>
Sat, 11 Nov 2023 21:54:51 +0000 (22:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 11 Nov 2023 21:54:51 +0000 (22:54 +0100)
src/wx/file_dialog.cc
src/wx/file_dialog.h

index b65077784747ca57f90404a9e87cf3d9cc8f186b..bed8b4e0d2c32e1c8776026cc47c7f6c17fd2d7f 100644 (file)
@@ -56,6 +56,13 @@ FileDialog::FileDialog(
 }
 
 
+boost::filesystem::path
+FileDialog::path() const
+{
+       return wx_to_std(GetPath());
+}
+
+
 vector<boost::filesystem::path>
 FileDialog::paths() const
 {
index cc6d720c1e388ccedaccc0f40360d9f5bba2ed6d..022c3dbed1aa148017f60427dbf23e6f6588e2fb 100644 (file)
@@ -43,6 +43,7 @@ public:
        /** @return true if OK was clicked */
        bool show();
 
+       boost::filesystem::path path() const;
        std::vector<boost::filesystem::path> paths() const;
 
 private: