diff options
Diffstat (limited to 'src/Fl_Group.cxx')
| -rw-r--r-- | src/Fl_Group.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index b42f1caf8..4deba31ce 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -227,8 +227,9 @@ int Fl_Group::handle(int event) { for (i = children(); i--;) { o = a[i]; if (o->takesevents() && Fl::event_inside(o)) { + Fl_Widget_Tracker wp(o); if (send(o,FL_PUSH)) { - if (Fl::pushed() && !o->contains(Fl::pushed())) Fl::pushed(o); + if (Fl::pushed() && wp.exists() && !o->contains(Fl::pushed())) Fl::pushed(o); return 1; } } |
