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/audio_panel.cc | |
| parent | 5b7c8b06f7d9ea910020b4620c234cf0dce95a66 (diff) | |
Potential fix for crash on loading a new film after starting an audio analysis.
Diffstat (limited to 'src/wx/audio_panel.cc')
| -rw-r--r-- | src/wx/audio_panel.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index a2ede0bd6..ab26329a4 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -362,3 +362,13 @@ AudioPanel::reference_clicked () d->set_reference_audio (_reference->GetValue ()); } + +void +AudioPanel::set_film (shared_ptr<Film>) +{ + /* We are changing film, so destroy any audio dialog for the old one */ + if (_audio_dialog) { + _audio_dialog->Destroy (); + _audio_dialog = 0; + } +} |
