Timeline: Don't die if the user cancels a Track's manual channels set dialog.
This commit is contained in:
parent
178ce417ee
commit
0e97d2d9d9
|
@ -694,6 +694,9 @@ Track::menu_cb ( const Fl_Menu_ *m )
|
|||
else if ( ! strcmp( picked, "Type/..." ) )
|
||||
{
|
||||
const char *s = fl_input( "How many channels?", "3" );
|
||||
if ( s )
|
||||
{
|
||||
|
||||
int c = atoi( s );
|
||||
|
||||
if ( c <= 0 || c > 10 )
|
||||
|
@ -704,6 +707,7 @@ Track::menu_cb ( const Fl_Menu_ *m )
|
|||
configure_outputs( c );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ( ! strcmp( picked, "/Add Control" ) )
|
||||
{
|
||||
new Control_Sequence( this );
|
||||
|
|
Loading…
Reference in New Issue