summaryrefslogtreecommitdiff
path: root/src/wx/film_editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-02 11:20:24 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-14 10:20:41 +0100
commitd2bd0c628fd0616fe3b7dd02bd955b2c07ab48d5 (patch)
treee974870e7e4b6014520b461a19a7b336eb7617a3 /src/wx/film_editor.cc
parentc138f4050bffbdc97edca8a824297f155dc62da3 (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.cc6
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");
}