summaryrefslogtreecommitdiff
path: root/src/wx/dcp_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-10 20:36:10 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-10 20:36:10 +0000
commitd9c2cf78e6c5e465e7f76020f78f7ed1e71c3bc0 (patch)
tree3744b833c3a717df67d0087ab49cc0c88a696907 /src/wx/dcp_panel.cc
parent6835fc7930cc6323e64e07f654f7aaba8fc9e689 (diff)
Add File->Close to main DCP-o-matic (#1180).
Diffstat (limited to 'src/wx/dcp_panel.cc')
-rw-r--r--src/wx/dcp_panel.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc
index a01db9be3..5ebd0989d 100644
--- a/src/wx/dcp_panel.cc
+++ b/src/wx/dcp_panel.cc
@@ -565,6 +565,13 @@ DCPPanel::set_film (shared_ptr<Film> film)
_film = film;
+ if (!_film) {
+ /* Really should all the film_changed below but this might be enough */
+ checked_set (_dcp_name, wxT(""));
+ set_general_sensitivity (false);
+ return;
+ }
+
film_changed (Film::NAME);
film_changed (Film::USE_ISDCF_NAME);
film_changed (Film::CONTENT);
@@ -628,6 +635,8 @@ DCPPanel::setup_sensitivity ()
_resolution->Enable (_generally_sensitive && _film && !_film->references_dcp_video());
_three_d->Enable (_generally_sensitive && _film && !_film->references_dcp_video());
_standard->Enable (_generally_sensitive && _film && !_film->references_dcp_video() && !_film->references_dcp_audio());
+ _reencode_j2k->Enable (_generally_sensitive && _film);
+ _show_audio->Enable (_generally_sensitive && _film);
}
void