Don't die if user picks a popup menu item with no callback set (e.g. a submenu node).
This commit is contained in:
parent
74df856ebe
commit
178ce417ee
|
@ -30,6 +30,7 @@ menu_popup ( Fl_Menu_ *m )
|
|||
if ( r )
|
||||
{
|
||||
m->value( r );
|
||||
if ( r->callback() )
|
||||
r->do_callback( static_cast<Fl_Widget*>(m) );
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue