Fix content selection update on new film.
authorCarl Hetherington <cth@carlh.net>
Wed, 24 Jul 2013 22:11:31 +0000 (23:11 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 24 Jul 2013 22:11:31 +0000 (23:11 +0100)
src/wx/film_editor.cc

index 74cb295bf4efd3f7dc6539d473c456ba4c1f85c0..5839244a4be98e5ddb9d66bd60d26a4f44d4c689 100644 (file)
@@ -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 ();
        }
 }