diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-27 22:40:05 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-27 22:40:05 +0000 |
| commit | 866552989b82ed28964172fce1dd6b787589f8d7 (patch) | |
| tree | fe6c262f24c422d79622980e0e39a730c4eb0004 /src/wx/controls.cc | |
| parent | c4479d094ada131ce63225930fab630989991991 (diff) | |
Fix controls in main DoM.
Diffstat (limited to 'src/wx/controls.cc')
| -rw-r--r-- | src/wx/controls.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 9fcdbd645..dd47aa184 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -362,6 +362,7 @@ Controls::set_film (shared_ptr<Film> film) } _film = film; + _film_change_connection = _film->Change.connect (boost::bind(&Controls::film_change, this, _1, _2)); setup_sensitivity (); @@ -374,3 +375,13 @@ Controls::film () const { return _film; } + +void +Controls::film_change (ChangeType type, Film::Property p) +{ + if (type == CHANGE_TYPE_DONE && p == Film::CONTENT) { + setup_sensitivity (); + update_position_label (); + update_position_slider (); + } +} |
