Timeline: Fix rare issue where moving the mouse over a region while recording at just the right moment could cause a spurious SET action to be written to the history.
This commit is contained in:
parent
393684f376
commit
826bea3c30
|
@ -822,6 +822,10 @@ Audio_Region::handle ( int m )
|
|||
static bool copied = false;
|
||||
static nframes_t os;
|
||||
|
||||
if ( !active_r() )
|
||||
/* don't mess with anything while recording... */
|
||||
return 0;
|
||||
|
||||
int X = Fl::event_x();
|
||||
int Y = Fl::event_y();
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "Sequence_Region.H"
|
||||
#include "Track.H"
|
||||
#include "debug.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -142,6 +143,10 @@ Sequence_Region::handle ( int m )
|
|||
int X = Fl::event_x();
|
||||
int Y = Fl::event_y();
|
||||
|
||||
if ( !active_r() )
|
||||
/* don't mess with anything while recording... */
|
||||
return 0;
|
||||
|
||||
Logger _log( this );
|
||||
|
||||
switch ( m )
|
||||
|
|
|
@ -391,6 +391,10 @@ Sequence_Widget::handle ( int m )
|
|||
int X = Fl::event_x();
|
||||
int Y = Fl::event_y();
|
||||
|
||||
if ( !active_r() )
|
||||
/* don't mess with anything while recording... */
|
||||
return 0;
|
||||
|
||||
Logger _log( this );
|
||||
|
||||
switch ( m )
|
||||
|
|
|
@ -1059,6 +1059,9 @@ Track::draw ( void )
|
|||
int
|
||||
Track::handle ( int m )
|
||||
{
|
||||
if ( !active_r() )
|
||||
/* don't mess with anything while recording... */
|
||||
return 0;
|
||||
|
||||
/* if ( m != FL_NO_EVENT ) */
|
||||
/* DMESSAGE( "%s", event_name( m ) ); */
|
||||
|
|
Loading…
Reference in New Issue