diff options
| -rw-r--r-- | FL/Fl_Menu_Item.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H index 6eaf0a9d2..fda9e5542 100644 --- a/FL/Fl_Menu_Item.H +++ b/FL/Fl_Menu_Item.H @@ -523,7 +523,7 @@ struct FL_EXPORT Fl_Menu_Item { You must first check that callback() is non-zero before calling this. */ void do_callback(Fl_Widget* o, long arg, Fl_Callback_Reason reason=FL_REASON_UNKNOWN) const { - Fl::callback_reason_ = FL_REASON_SELECTED; callback_(o, (void*)(fl_intptr_t)arg); + Fl::callback_reason_ = reason; callback_(o, (void*)(fl_intptr_t)arg); } /** Back compatibility only. |
