Browse Source

Timeline: stabilize track order in snapshot output.

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
0e66baaf21
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      timeline/src/Timeline.C

+ 2
- 6
timeline/src/Timeline.C View File

@@ -275,6 +275,8 @@ Timeline::snapshot ( void )
punch_cursor_track->log_children();
play_cursor_track->log_children();

update_track_order();

for ( int i = 0; i < tracks->children(); ++i )
{
((Track*)tracks->child( i ))->log_children();
@@ -1879,8 +1881,6 @@ Timeline::add_track ( Track *track )

tracks->add( track );

// update_track_order();

/* FIXME: why is this necessary? doesn't the above add do DAMAGE_CHILD? */
redraw();

@@ -1894,8 +1894,6 @@ Timeline::insert_track ( Track *track, int n )

tracks->insert( *track, n );

update_track_order();

tracks->redraw();

/* FIXME: why is this necessary? doesn't the above add do DAMAGE_CHILD? */
@@ -1957,8 +1955,6 @@ Timeline::remove_track ( Track *track )
/* FIXME: what to do about track contents? */
tracks->remove( track );

update_track_order();

/* FIXME: why is this necessary? doesn't the above add do DAMAGE_CHILD? */
redraw();
}


Loading…
Cancel
Save