summaryrefslogtreecommitdiff
path: root/src/wx/dir_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-13 20:39:45 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-14 00:42:39 +0100
commita2bf32c1419a56e6aaee7e742961b9f471a9dd79 (patch)
treeee7e0bfffc5dd3f77d36c8e4d2eff6c31c8aef99 /src/wx/dir_dialog.h
parent940812b93bade4ac8fd41ee4fb29f3f799815b83 (diff)
Allow optional override of the initial path taken from the key.
Diffstat (limited to 'src/wx/dir_dialog.h')
-rw-r--r--src/wx/dir_dialog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/dir_dialog.h b/src/wx/dir_dialog.h
index f733f8327..c3b470a07 100644
--- a/src/wx/dir_dialog.h
+++ b/src/wx/dir_dialog.h
@@ -24,6 +24,7 @@ LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
#include <boost/filesystem.hpp>
+#include <boost/optional.hpp>
#include <vector>
@@ -34,7 +35,8 @@ public:
wxWindow* parent,
wxString title,
long style,
- std::string initial_path_key
+ std::string initial_path_key,
+ boost::optional<boost::filesystem::path> override_path = boost::optional<boost::filesystem::path>()
);
/** @return true if OK was clicked */