Restore time zone to Cinema and improve UI to use it (#2473).
[dcpomatic.git] / src / wx / kdm_dialog.cc
index e9d186264807e84a444126974a693affa60f20fd..e6f4eca5ea5c60f6b7f85e699550c020ef0d1a14 100644 (file)
@@ -126,7 +126,7 @@ KDMDialog::KDMDialog (wxWindow* parent, shared_ptr<const Film> 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<const Film> film)
 }
 
 
+void
+KDMDialog::screens_changed()
+{
+       _timing->suggest_utc_offset(_screens->best_utc_offset());
+       setup_sensitivity();
+}
+
+
 void
 KDMDialog::cpl_changed()
 {