pull/147/merge
Adam Avramov 2021-01-05 18:16:46 -08:00 committed by GitHub
commit 2a09e0ba52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -855,6 +855,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++ )
{