From 5dce250808e2371fdbd3e2f21511e789454b788f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Jun 2015 21:04:28 +0100 Subject: [PATCH] Select newly-added content (#455). --- ChangeLog | 4 ++++ src/wx/film_editor.cc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 064cf751f..688e933b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-06-15 Carl Hetherington + + * Select newly-added content (#455). + 2015-06-14 Carl Hetherington * Version 2.1.3 released. diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index bbfafa8c5..82fae2e9b 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -74,6 +74,11 @@ FilmEditor::film_changed (Film::Property p) _content_panel->film_changed (p); _dcp_panel->film_changed (p); + + if (p == Film::CONTENT && !_film->content().empty ()) { + /* Select newly-added content */ + _content_panel->set_selection (_film->content().back ()); + } } void -- 2.30.2