summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-24 23:11:31 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-24 23:11:31 +0100
commit4c6e64ed9792fa15acba4255f02e2132d4ed4ea5 (patch)
tree84a95cee85fb9ba2045554682f5936a049d583b8 /src
parent92112105d96ed0193031cce21d1197ce29dfecc2 (diff)
Fix content selection update on new film.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_editor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc
index 74cb295bf..5839244a4 100644
--- a/src/wx/film_editor.cc
+++ b/src/wx/film_editor.cc
@@ -497,8 +497,6 @@ FilmEditor::set_film (shared_ptr<Film> f)
{
set_general_sensitivity (f != 0);
- content_selection_changed ();
-
if (_film == f) {
return;
}
@@ -533,6 +531,8 @@ FilmEditor::set_film (shared_ptr<Film> f)
if (!_film->content().empty ()) {
set_selection (_film->content().front ());
+ } else {
+ content_selection_changed ();
}
}