diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-11 20:37:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-11 20:37:42 +0100 |
| commit | a6e2f0fe9a55dac22566312265c98b7893670327 (patch) | |
| tree | 5da9a4bad38deba740e194c50673f53fa1b1a604 | |
| parent | 4e2e10d256f8a1c107db9ce33042a2ed28fdc0bd (diff) | |
Cleanup: stack-allocated dialogs.
| -rw-r--r-- | src/wx/content_menu.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index c8ff57ad0..006660e11 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -452,10 +452,10 @@ ContentMenu::ov () auto dcp = dynamic_pointer_cast<DCPContent> (_content.front()); DCPOMATIC_ASSERT (dcp); - auto d = make_wx<wxDirDialog>(_parent, _("Select OV")); + wxDirDialog dialog(_parent, _("Select OV")); - if (d->ShowModal() == wxID_OK) { - dcp->add_ov (wx_to_std (d->GetPath())); + if (dialog.ShowModal() == wxID_OK) { + dcp->add_ov(wx_to_std(dialog.GetPath())); auto film = _film.lock(); DCPOMATIC_ASSERT (film); JobManager::instance()->add (make_shared<ExamineContentJob>(film, dcp)); |
