diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-16 00:51:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-16 00:51:15 +0100 |
| commit | 1dd9fb73e28f079fb0d4ee46ab3e18008e42aca2 (patch) | |
| tree | d664e31fc4331e0c0311e7657ff1a4323eb03a88 /src/wx/dcp_panel.cc | |
| parent | 5b7c8b06f7d9ea910020b4620c234cf0dce95a66 (diff) | |
Potential fix for crash on loading a new film after starting an audio analysis.
Diffstat (limited to 'src/wx/dcp_panel.cc')
| -rw-r--r-- | src/wx/dcp_panel.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index 66a084259..461aeca71 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -496,6 +496,12 @@ DCPPanel::dcp_content_type_changed () void DCPPanel::set_film (shared_ptr<Film> film) { + /* We are changing film, so destroy any audio dialog for the old one */ + if (_audio_dialog) { + _audio_dialog->Destroy (); + _audio_dialog = 0; + } + _film = film; film_changed (Film::NAME); |
