summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-15 21:04:28 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-15 21:04:28 +0100
commit5dce250808e2371fdbd3e2f21511e789454b788f (patch)
treea55a21b8d2a1de47f420cd57213aed526cda2d83 /src
parentb6aa4eaa6e4335c3b5a7144c0ab126eb8dbe94ec (diff)
Select newly-added content (#455).
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_editor.cc5
1 files changed, 5 insertions, 0 deletions
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