aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkcomplexbutton.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2012-12-10 21:34:23 +0000
committercorvid <corvid@lavabit.com>2012-12-10 21:34:23 +0000
commit0c71f4f7962733a59d7113979c5a7afe6dc1d176 (patch)
tree4e7bff6a447ad393286b4d5ec1dcb99ff71eb04a /dw/fltkcomplexbutton.cc
parentd2681b88ca7fc6606ea6fdd15e0ae1f3eeb14373 (diff)
fltkcomplexbutton don't need widget tracker
It seems that the idea of a widget tracker is so that you can do a callback and, after you return, check whether the widget is still there before using it. We're just returning from the handle(), though.
Diffstat (limited to 'dw/fltkcomplexbutton.cc')
-rw-r--r--dw/fltkcomplexbutton.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/dw/fltkcomplexbutton.cc b/dw/fltkcomplexbutton.cc
index d965538a..76af3713 100644
--- a/dw/fltkcomplexbutton.cc
+++ b/dw/fltkcomplexbutton.cc
@@ -98,8 +98,6 @@ int ComplexButton::handle(int event) {
!(Fl::event_state() & (FL_SHIFT | FL_CTRL | FL_ALT | FL_META))) {
value(1);
set_changed();
- Fl_Widget_Tracker wp(this);
- if (wp.deleted()) return 1;
if (when() & FL_WHEN_RELEASE) do_callback();
return 1;
} else return 0;