diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-13 13:06:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-13 13:06:52 +0100 |
| commit | 5f67b54eec41882ff39096a1e14ee45a16c19c38 (patch) | |
| tree | 24c26fe40dcab7ac9ec89765c85d76bcd2471850 /src | |
| parent | 7f8f5f09cc5ded87c82d7b48ba54183527358b43 (diff) | |
Fix setup of filters label on load; select first content in newly-loaded films.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_editor.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 0828d5b79..7e13261ae 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -867,8 +867,12 @@ FilmEditor::set_film (shared_ptr<Film> f) film_changed (Film::DCP_VIDEO_FRAME_RATE); film_changed (Film::DCP_AUDIO_CHANNELS); - wxListEvent ev; - content_selection_changed (ev); + if (!_film->content().empty ()) { + set_selection (_film->content().front ()); + } else { + wxListEvent ev; + content_selection_changed (ev); + } } /** Updates the sensitivity of lots of widgets to a given value. @@ -1217,6 +1221,7 @@ FilmEditor::content_selection_changed (wxListEvent &) film_content_changed (s, FFmpegContentProperty::AUDIO_STREAMS); film_content_changed (s, FFmpegContentProperty::SUBTITLE_STREAM); film_content_changed (s, FFmpegContentProperty::SUBTITLE_STREAMS); + film_content_changed (s, FFmpegContentProperty::FILTERS); film_content_changed (s, SubtitleContentProperty::SUBTITLE_OFFSET); film_content_changed (s, SubtitleContentProperty::SUBTITLE_SCALE); } |
