diff --git a/sequencer/src/gui/ui.fl b/sequencer/src/gui/ui.fl index b46abc9..f34944f 100644 --- a/sequencer/src/gui/ui.fl +++ b/sequencer/src/gui/ui.fl @@ -847,6 +847,12 @@ o->maximum( pattern::patterns() );} char picked[80]; mapping_menu->item_pathname(picked, sizeof(picked)-1 ); +const char *text = o->text(); + +if ( ! strcmp( text, picked ) ) + // nothing picked... + return; + if ( 0 == strncmp( picked, "Instrument", strlen( "Instrument" ) ) ) { ((pattern*)pattern_canvas_widget->grid())->mapping.open( Mapping::INSTRUMENT, o->text() );