summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-12-17 16:01:32 +0000
committerCarl Hetherington <cth@carlh.net>2017-12-17 16:01:32 +0000
commitb8883efc8d891ec634ba5587c2d3ca02c71b7cce (patch)
tree44660c4bd9d68317a55399cb18a6f3b8854c0383 /src/wx
parent6abe10b28dbe3132ac329dad60befae5f40fbe69 (diff)
Add Close option to player.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/film_viewer.cc4
-rw-r--r--src/wx/player_information.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 7ada3b01a..a834a5344 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -191,6 +191,10 @@ FilmViewer::set_film (shared_ptr<Film> film)
update_position_label ();
if (!_film) {
+ _player.reset ();
+ recreate_butler ();
+ _frame.reset ();
+ refresh_panel ();
return;
}
diff --git a/src/wx/player_information.cc b/src/wx/player_information.cc
index 98d4ab81b..bab960730 100644
--- a/src/wx/player_information.cc
+++ b/src/wx/player_information.cc
@@ -90,6 +90,7 @@ PlayerInformation::triggered_update ()
for (int r = 1; r < dcp_lines; ++r) {
checked_set (_dcp[r], wxT(""));
}
+ checked_set (_decode_resolution, wxT(""));
return;
}