Prevent crash when trying to add Aux before input
This commit is contained in:
parent
e230929a57
commit
322276474a
|
@ -808,6 +808,13 @@ Module::insert_menu_cb ( const Fl_Menu_ *m )
|
|||
|
||||
if ( !strcmp( picked, "Aux" ) )
|
||||
{
|
||||
|
||||
if ( ninputs() == 0 )
|
||||
{
|
||||
fl_alert( "Cannot insert this module at this point in the chain" );
|
||||
return;
|
||||
}
|
||||
|
||||
int n = 0;
|
||||
for ( int i = 0; i < chain()->modules(); i++ )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue