Timeline: Don't die if the user cancels a Track's manual channels set dialog.

This commit is contained in:
Jonathan Moore Liles 2010-01-17 12:59:10 -06:00
parent 178ce417ee
commit 0e97d2d9d9
1 changed files with 63 additions and 59 deletions

View File

@ -694,6 +694,9 @@ Track::menu_cb ( const Fl_Menu_ *m )
else if ( ! strcmp( picked, "Type/..." ) ) else if ( ! strcmp( picked, "Type/..." ) )
{ {
const char *s = fl_input( "How many channels?", "3" ); const char *s = fl_input( "How many channels?", "3" );
if ( s )
{
int c = atoi( s ); int c = atoi( s );
if ( c <= 0 || c > 10 ) if ( c <= 0 || c > 10 )
@ -704,6 +707,7 @@ Track::menu_cb ( const Fl_Menu_ *m )
configure_outputs( c ); configure_outputs( c );
} }
} }
}
else if ( ! strcmp( picked, "/Add Control" ) ) else if ( ! strcmp( picked, "/Add Control" ) )
{ {
new Control_Sequence( this ); new Control_Sequence( this );