diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 15:56:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 15:56:16 +0000 |
| commit | c4362a7aa94d9340e38021a67a85635fc6cd4f7d (patch) | |
| tree | 465eac966f7e49d15b863a1722d07bb56f6c0a7f /src | |
| parent | d9f9938c2ca2a1f9b27a85bf64a50d7f480f969b (diff) | |
Fix crash when loading a film when one is already loaded.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dvdomatic.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index 5d19a142f..535e6d749 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -282,13 +282,14 @@ public: { wxDirDialog* c = new wxDirDialog (this, wxT ("Select film to open"), wxStandardPaths::Get().GetDocumentsDir(), wxDEFAULT_DIALOG_STYLE | wxDD_DIR_MUST_EXIST); int const r = c->ShowModal (); - c->Destroy (); if (r == wxID_OK) { maybe_save_then_delete_film (); film.reset (new Film (wx_to_std (c->GetPath ()))); set_film (); } + + c->Destroy (); } void file_save (wxCommandEvent &) |
