diff --git a/FL/menu_popup.C b/FL/menu_popup.C index d37b6a7..7e3dd05 100644 --- a/FL/menu_popup.C +++ b/FL/menu_popup.C @@ -30,7 +30,8 @@ menu_popup ( Fl_Menu_ *m ) if ( r ) { m->value( r ); - r->do_callback( static_cast(m) ); + if ( r->callback() ) + r->do_callback( static_cast(m) ); return true; }