summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/dvdomatic.cc3
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 &)