diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-02 11:20:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-14 10:20:41 +0100 |
| commit | d2bd0c628fd0616fe3b7dd02bd955b2c07ab48d5 (patch) | |
| tree | e974870e7e4b6014520b461a19a7b336eb7617a3 /src/wx/film_editor.cc | |
| parent | c138f4050bffbdc97edca8a824297f155dc62da3 (diff) | |
Add option to analyse audio automatically when content is added (#673).
Diffstat (limited to 'src/wx/film_editor.cc')
| -rw-r--r-- | src/wx/film_editor.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 545eaf56e..b67c9612d 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -34,7 +34,9 @@ #include <iostream> using std::cout; +using std::string; using boost::shared_ptr; +using boost::optional; /** @param f Film to edit */ FilmEditor::FilmEditor (wxWindow* parent, FilmViewer* viewer) @@ -136,7 +138,7 @@ FilmEditor::set_general_sensitivity (bool s) } void -FilmEditor::active_jobs_changed (bool a) +FilmEditor::active_jobs_changed (optional<string> j) { - set_general_sensitivity (!a); + set_general_sensitivity (!j || *j == "analyse_audio"); } |
