From 7accbfd440e4bd8bf28b9b2b910cec2bff0511a6 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 24 Mar 2014 18:24:59 +0000 Subject: Fixing STR#3009 as a two step process: 1) Undo r9867 (a fix for STR#2939) which made more changes than needed Doing this will also fix #3009. 2) Apply just the small mod needed to fix STR#2939 so that both #3009 and #2939 are solved. This commit resolves (2), which re-fixes STR #2939. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Tabs.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index a376fb9d7..cd2240652 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -178,7 +178,11 @@ int Fl_Tabs::handle(int event) { Fl::focus(this); redraw_tabs(); } - if (o && value(o)) { + if (o && // Released on a tab and.. + (value(o) || // tab changed value or.. + (when()&(FL_WHEN_NOT_CHANGED)) // ..no change but WHEN_NOT_CHANGED set, + ) // handles FL_WHEN_RELEASE_ALWAYS too. + ) { Fl_Widget_Tracker wp(o); set_changed(); do_callback(); -- cgit v1.2.3