diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-05-11 12:48:10 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-05-11 12:48:10 +0200 |
| commit | 82b20017356c9f81539639d84b56a097c43765a1 (patch) | |
| tree | 3471e14f44d778a2fa9802e45c59d60019880cd9 /FL | |
| parent | c28237d7567541f50a6d303c52c9618bfed5ea26 (diff) | |
Fix unused parameter
Diffstat (limited to 'FL')
| -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. |
