Timeline: Fix locking behavior of Control Sequences.

pull/3/head
Jonathan Moore Liles 2012-06-04 22:59:33 -07:00
parent d249bb9bbd
commit 2af46a1a0c
1 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,11 @@ Sequence::x_to_offset ( int X )
void
Sequence::sort ( void )
{
timeline->wrlock();
_widgets.sort( Sequence_Widget::sort_func );
timeline->unlock();
}
/** return a pointer to the widget that /r/ overlaps, or NULL if none. */
@ -140,11 +144,7 @@ Sequence::overlaps ( Sequence_Widget *r )
void
Sequence::handle_widget_change ( nframes_t start, nframes_t length )
{
timeline->wrlock();
sort();
timeline->unlock();
// timeline->update_length( start + length );
}