diff options
| author | Greg Ercolano <erco@seriss.com> | 2014-03-24 18:24:59 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2014-03-24 18:24:59 +0000 |
| commit | 7accbfd440e4bd8bf28b9b2b910cec2bff0511a6 (patch) | |
| tree | 11dc07ca26583a3e284b9eddb93308cf1b1d8025 /src/Fl_Tabs.cxx | |
| parent | fca43790e05e53e56dafb0d4e608596ffd99dcfa (diff) | |
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
Diffstat (limited to 'src/Fl_Tabs.cxx')
| -rw-r--r-- | src/Fl_Tabs.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |
