summaryrefslogtreecommitdiff
path: root/src/Fl_Group.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Group.cxx')
-rw-r--r--src/Fl_Group.cxx3
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;
}
}