From ef9eef051d1f9eb09b7950cde482266531eba26a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 11 Jul 2013 11:02:08 +0100 Subject: Update content controls when content is removed. --- src/wx/film_editor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index b1e672cfa..8d33b58d6 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -1193,6 +1193,9 @@ FilmEditor::content_remove_clicked (wxCommandEvent &) if (c) { _film->remove_content (c); } + + wxListEvent ev; + content_selection_changed (ev); } void @@ -1204,7 +1207,7 @@ FilmEditor::content_selection_changed (wxListEvent &) if (_audio_dialog && s && dynamic_pointer_cast (s)) { _audio_dialog->set_content (dynamic_pointer_cast (s)); } - + film_content_changed (s, ContentProperty::START); film_content_changed (s, ContentProperty::LENGTH); film_content_changed (s, VideoContentProperty::VIDEO_CROP); -- cgit v1.2.3