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/wx/kdm_dialog.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/wx/kdm_dialog.cc') diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index e9d186264..e6f4eca5e 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -126,7 +126,7 @@ KDMDialog::KDMDialog (wxWindow* parent, shared_ptr film) /* Bind */ - _screens->ScreensChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this)); + _screens->ScreensChanged.connect(boost::bind(&KDMDialog::screens_changed, this)); _timing->TimingChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this)); _make->Bind (wxEVT_BUTTON, boost::bind (&KDMDialog::make_clicked, this)); _cpl->Changed.connect(boost::bind(&KDMDialog::cpl_changed, this)); @@ -140,6 +140,14 @@ KDMDialog::KDMDialog (wxWindow* parent, shared_ptr film) } +void +KDMDialog::screens_changed() +{ + _timing->suggest_utc_offset(_screens->best_utc_offset()); + setup_sensitivity(); +} + + void KDMDialog::cpl_changed() { -- cgit v1.2.3