diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-12 23:35:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-12 23:35:33 +0000 |
| commit | f58d9e44302151dea9f594acd9fc27a331fa77fb (patch) | |
| tree | 0a640ead2086123afe6a11f27b47be32dad8a585 /src | |
| parent | b1f84f5635e4ebbd98882b39e5c5b19f62fe006e (diff) | |
| parent | 0f0c54de9fe67782037fd4e3d115b8e7732fe9ed (diff) | |
Merge branch 'master' into 2.0--libdcp-1.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_batch.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_batch.cc b/src/tools/dcpomatic_batch.cc index 41cb23e73..58fbaec98 100644 --- a/src/tools/dcpomatic_batch.cc +++ b/src/tools/dcpomatic_batch.cc @@ -168,6 +168,10 @@ private: void add_film () { wxDirDialog* c = new wxDirDialog (this, _("Select film to open"), wxStandardPaths::Get().GetDocumentsDir(), wxDEFAULT_DIALOG_STYLE | wxDD_DIR_MUST_EXIST); + if (_last_parent) { + c->SetPath (std_to_wx (_last_parent.get().string ())); + } + int r; while (1) { r = c->ShowModal (); @@ -190,8 +194,12 @@ private: } } + _last_parent = boost::filesystem::path (wx_to_std (c->GetPath ())).parent_path (); + c->Destroy (); } + + boost::optional<boost::filesystem::path> _last_parent; }; static const wxCmdLineEntryDesc command_line_description[] = { |
