diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-24 01:49:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-24 19:12:36 +0200 |
| commit | 401da185ca664fc8d819fc842ffc08e14d4f6486 (patch) | |
| tree | 5c2ea2d1a7b1b537c04e7e9b3d32c8a44080f168 /src/wx/kdm_dialog.cc | |
| parent | dbcd1675732d59f6337f7f60d0a39aaa6a1aa3a6 (diff) | |
Restore time zone to Cinema and improve UI to use it (#2473).
Diffstat (limited to 'src/wx/kdm_dialog.cc')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 10 |
1 files changed, 9 insertions, 1 deletions
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<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)); @@ -141,6 +141,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() { try { |
