diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-10-05 23:10:33 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-10-05 23:10:33 +0000 |
| commit | 30800d35d439194502a7134f262b8db5caceeeb3 (patch) | |
| tree | df4132133824fc1d67dd22a37262941ba4570f12 /src/Fl_File_Input.cxx | |
| parent | 908a2b5515a36778053187db0da60335c0361cde (diff) | |
STR#2052 fixed. Also added documentation to FL_File_Input explaining what events the user can handle and also an application note explaining how to avoid potential callback reentrant calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Input.cxx')
| -rw-r--r-- | src/Fl_File_Input.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_File_Input.cxx b/src/Fl_File_Input.cxx index 7e96ecdd7..d5a4a698b 100644 --- a/src/Fl_File_Input.cxx +++ b/src/Fl_File_Input.cxx @@ -278,7 +278,7 @@ Fl_File_Input::handle_button(int event) // I - Event // Then do the callbacks, if necessary... set_changed(); - if (when() & FL_WHEN_CHANGED) do_callback(); + if (when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE) ) do_callback(); } return 1; |
