summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-18 00:11:15 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-18 00:11:15 +0100
commit962918f24331ae6ee5efcf6d8663428351b9e7e9 (patch)
treef2278148cd9d97c7553464c084f3afc343254920 /src
parent18fbb7b578eb0626c269bbb90de205c2d8fc3326 (diff)
Close player on closing dual-screen controls.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_player.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc
index 7a7e5ac16..24d4585d2 100644
--- a/src/tools/dcpomatic_player.cc
+++ b/src/tools/dcpomatic_player.cc
@@ -194,12 +194,18 @@ public:
Bind (wxEVT_MENU, boost::bind (&DOMFrame::forward_frame, this), ID_forward_frame);
_cinema_dialog = new CinemaPlayerDialog (this, _viewer);
+ _cinema_dialog->Bind (wxEVT_CLOSE_WINDOW, boost::bind(&DOMFrame::close, this));
UpdateChecker::instance()->StateChanged.connect (boost::bind (&DOMFrame::update_checker_state_changed, this));
setup_screen ();
}
+ void close ()
+ {
+ Close ();
+ }
+
bool playback_permitted ()
{
if (!_film || !Config::instance()->respect_kdm_validity_periods()) {