|
|
@@ -417,6 +417,7 @@ Track::handle ( int m ) |
|
|
|
{ "Quad", 0, 0, 0, FL_MENU_RADIO | ( c == 4 ? FL_MENU_VALUE : 0 ) }, |
|
|
|
{ "...", 0, 0, 0, FL_MENU_RADIO | ( c == 3 || c > 4 ? FL_MENU_VALUE : 0 ) }, |
|
|
|
{ 0 }, |
|
|
|
{ "Remove", 0, 0, 0, transport->rolling ? FL_MENU_INACTIVE : 0 }, |
|
|
|
{ 0 }, |
|
|
|
}; |
|
|
|
|
|
|
@@ -448,12 +449,22 @@ Track::handle ( int m ) |
|
|
|
configure_outputs( c ); |
|
|
|
} |
|
|
|
} |
|
|
|
else if ( r == &menu[ 6 ] ) |
|
|
|
{ |
|
|
|
int r = fl_choice( "Are you certain you want to remove track \"%s\"?", "Cancel", NULL, "Remove", name() ); |
|
|
|
|
|
|
|
if ( r == 2 ) |
|
|
|
{ |
|
|
|
timeline->remove_track( this ); |
|
|
|
/* FIXME: need to queue deletion. in a way that won't crash the playback. */ |
|
|
|
// delete this; |
|
|
|
Fl::delete_widget( this ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
default: |
|
|
|
return Fl_Group::handle( m ); |
|
|
|
|
|
|
|