diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-30 20:39:12 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-30 20:39:12 +0000 |
| commit | a1839a88ab0cffdf04737dae783c21f27f65d491 (patch) | |
| tree | d29b528c385a591a4bd46e1da23be6e4aae255a5 /src/wx/timeline.cc | |
| parent | 4e617f7dee7b4b78555ca3e80e77d26d4fa8f884 (diff) | |
Add a PlaylistOrderChanged signal and emit it when the playlist
is sorted. Do playlist sorting when content position / length etc.
changes. Handle sorts better when comparing content at the same
position.
Diffstat (limited to 'src/wx/timeline.cc')
| -rw-r--r-- | src/wx/timeline.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 952945884..8a61eccb0 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -101,6 +101,13 @@ Timeline::film_changed (Film::Property p) if (p == Film::CONTENT || p == Film::REEL_TYPE || p == Film::REEL_LENGTH) { ensure_ui_thread (); recreate_views (); + } else if (p == Film::CONTENT_ORDER) { + assign_tracks (); + if (!_left_down) { + /* Only do this if we are not dragging, as it's confusing otherwise */ + setup_pixels_per_second (); + } + Refresh (); } } @@ -142,14 +149,7 @@ Timeline::film_content_changed (int property) { ensure_ui_thread (); - if (property == ContentProperty::POSITION) { - assign_tracks (); - if (!_left_down) { - /* Only do this if we are not dragging, as it's confusing otherwise */ - setup_pixels_per_second (); - } - Refresh (); - } else if (property == AudioContentProperty::AUDIO_STREAMS) { + if (property == AudioContentProperty::AUDIO_STREAMS) { recreate_views (); } } |
