diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-19 23:19:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-19 23:19:34 +0100 |
| commit | d75e4c652fac5d3c65b42b03249f3c6e0836f772 (patch) | |
| tree | b141a74b1a1b4181637a8de2b1b6e1321f4e0c5c /src | |
| parent | 2ec879dfc354c1aa95f78e9f264f2487fd2688ae (diff) | |
Fix audio analysis after recent breakage.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_dialog.cc | 10 | ||||
| -rw-r--r-- | src/wx/audio_dialog.h | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index 26c12aa49..c2afb53dc 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -108,7 +108,6 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film) overall_sizer->SetSizeHints (this); _film_connection = film->ContentChanged.connect (boost::bind (&AudioDialog::try_to_load_analysis, this)); - try_to_load_analysis (); SetTitle (_("DCP-o-matic audio")); } @@ -258,3 +257,12 @@ AudioDialog::setup_peak_time () _peak_time->SetForegroundColour (wxColour (0, 0, 0)); } } + +void +AudioDialog::Show () +{ + wxDialog::Show (); + try_to_load_analysis (); +} + + diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 3c2d4f69c..f04496338 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -31,6 +31,8 @@ class AudioDialog : public wxDialog public: AudioDialog (wxWindow *, boost::shared_ptr<Film> film); + void Show (); + private: void content_changed (int); void channel_clicked (wxCommandEvent &); |
