Restore time zone to Cinema and improve UI to use it (#2473).
[dcpomatic.git] / src / tools / dcpomatic_kdm.cc
index 1eda05162780a918de9b2613f4e2f2dd0632d0f3..7838e145d71e81396d6cd577f5e6a5308d8330b0 100644 (file)
@@ -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;