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,7 +30,8 @@ menu_popup ( Fl_Menu_ *m )
|
|||
if ( r )
|
||||
{
|
||||
m->value( r );
|
||||
r->do_callback( static_cast<Fl_Widget*>(m) );
|
||||
if ( r->callback() )
|
||||
r->do_callback( static_cast<Fl_Widget*>(m) );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue