X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_combiner.cc;h=8e7337f65b06e95748ec78c21f22bd129ba6c410;hp=fb788ef6b51d558ebd7f0c6d3620e0eff127d40a;hb=e572ffd2e0bdc59cd00103a242d290d89e039c93;hpb=bd24f28d9d78c40d1f790c4213100532407ff783 diff --git a/src/tools/dcpomatic_combiner.cc b/src/tools/dcpomatic_combiner.cc index fb788ef6b..8e7337f65 100644 --- a/src/tools/dcpomatic_combiner.cc +++ b/src/tools/dcpomatic_combiner.cc @@ -19,6 +19,7 @@ */ +#include "wx/dir_dialog.h" #include "wx/dir_picker_ctrl.h" #include "wx/editable_list.h" #include "wx/wx_signal_manager.h" @@ -56,18 +57,23 @@ display_string (boost::filesystem::path p, int) } -class DirDialogWrapper : public wxDirDialog +class DirDialogWrapper : public DirDialog { public: DirDialogWrapper (wxWindow* parent) - : wxDirDialog (parent, _("Choose a DCP folder"), wxT(""), wxDD_DIR_MUST_EXIST) + : DirDialog (parent, _("Choose a DCP folder"), wxDD_DIR_MUST_EXIST, "AddCombinerInputPath") { } + virtual int ShowModal() override + { + return DirDialog::show() ? wxID_OK : wxID_CANCEL; + } + optional get () const { - return boost::filesystem::path(wx_to_std(GetPath())); + return path(); } void set (boost::filesystem::path)