From 401da185ca664fc8d819fc842ffc08e14d4f6486 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 24 Apr 2024 01:49:09 +0200 Subject: Restore time zone to Cinema and improve UI to use it (#2473). --- src/tools/dcpomatic_kdm.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index 1eda05162..7838e145d 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -237,7 +237,7 @@ public: /* Instantly save any config changes when using a DCP-o-matic GUI */ Config::instance()->Changed.connect (boost::bind (&Config::write, Config::instance ())); - _screens->ScreensChanged.connect (boost::bind (&DOMFrame::setup_sensitivity, this)); + _screens->ScreensChanged.connect(boost::bind(&DOMFrame::screens_changed, this)); _create->Bind (wxEVT_BUTTON, bind (&DOMFrame::create_kdms, this)); _dkdm->Bind(wxEVT_TREE_SEL_CHANGED, boost::bind(&DOMFrame::dkdm_selection_changed, this)); _dkdm->Bind (wxEVT_TREE_BEGIN_DRAG, boost::bind (&DOMFrame::dkdm_begin_drag, this, _1)); @@ -797,6 +797,12 @@ private: update_dkdm_view(); } + void screens_changed() + { + _timing->suggest_utc_offset(_screens->best_utc_offset()); + setup_sensitivity(); + } + wxPreferencesEditor* _config_dialog; ScreensPanel* _screens; KDMTimingPanel* _timing; -- cgit v1.2.3