Requested-by: Brad Miller
2014-02-12 Carl Hetherington <cth@carlh.net>
+ * Make the batch converter remember its last directory
+ for the film picker (#318).
+
* Add dcpomatic_batch to OS X .app.
2014-02-11 Carl Hetherington <cth@carlh.net>
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 ();
}
}
+ _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[] = {