-d8bfb59816e39406beb7c815e0424c480ae74e32
cd0b7dd044d5b5b1c05118a58c58458edb80bf61
d609c88438d8110569cc940ea2e1bc78c0bb5acc
{
wxDirDialog* d = new wxDirDialog (_panel, _("Choose a folder"), wxT (""), wxDD_DIR_MUST_EXIST);
int const r = d->ShowModal ();
+ boost::filesystem::path const path (wx_to_std (d->GetPath ()));
d->Destroy ();
if (r != wxID_OK) {
shared_ptr<Content> content;
try {
- content.reset (new ImageContent (_film, boost::filesystem::path (wx_to_std (d->GetPath ()))));
+ content.reset (new ImageContent (_film, path));
} catch (...) {
try {
- content.reset (new DCPContent (_film, boost::filesystem::path (wx_to_std (d->GetPath ()))));
+ content.reset (new DCPContent (_film, path));
} catch (...) {
error_dialog (_panel, _("Could not find any images nor a DCP in that folder"));
return;