diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-16 01:14:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-16 01:15:50 +0100 |
| commit | fe851f2e6e57d3a8781ecc173089c19632c521e3 (patch) | |
| tree | fd0f388d9ce9eccb4a8011361bd166d192918bd8 /src/wx/kdm_cpl_panel.cc | |
| parent | e8748f158249d7be906f6c6cf2411df45dd07a24 (diff) | |
Use wx_ptr more.
Diffstat (limited to 'src/wx/kdm_cpl_panel.cc')
| -rw-r--r-- | src/wx/kdm_cpl_panel.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wx/kdm_cpl_panel.cc b/src/wx/kdm_cpl_panel.cc index b1bbc1cf0..1ddaa90cf 100644 --- a/src/wx/kdm_cpl_panel.cc +++ b/src/wx/kdm_cpl_panel.cc @@ -101,17 +101,14 @@ KDMCPLPanel::update_cpl_summary () void KDMCPLPanel::cpl_browse_clicked () { - wxFileDialog* d = new wxFileDialog (this, _("Select CPL XML file"), wxEmptyString, wxEmptyString, "*.xml"); + auto d = make_wx<wxFileDialog>(this, _("Select CPL XML file"), wxEmptyString, wxEmptyString, "*.xml"); if (d->ShowModal() == wxID_CANCEL) { - d->Destroy (); return; } boost::filesystem::path cpl_file (wx_to_std (d->GetPath ())); boost::filesystem::path dcp_dir = cpl_file.parent_path (); - d->Destroy (); - try { /* XXX: hack alert */ cxml::Document cpl_document ("CompositionPlaylist"); |
