Allow optional override of the initial path taken from the key.
[dcpomatic.git] / src / wx / dir_dialog.h
index f733f8327f622ac7cbdd313687f7737eeea77b9b..c3b470a07f1e96ead5f9427d68265ea0297e1c84 100644 (file)
@@ -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 */