summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser2.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-05-26 01:39:53 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-05-26 01:39:53 +0000
commita841de469c071cfdccb8ac00003584c95a2a4f2e (patch)
tree4630f1cfa557de3c9a19abb7d52b1b80afe7fbda /src/Fl_File_Chooser2.cxx
parent10efd828538e5c8bc795d9a0f44314313e1d090e (diff)
Fix STR 27 - double-click in file chooser followed by single click was
treated as another double-click (actually triple click, but the effect was the same...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
-rw-r--r--src/Fl_File_Chooser2.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx
index 73f9a76fd..914f72809 100644
--- a/src/Fl_File_Chooser2.cxx
+++ b/src/Fl_File_Chooser2.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.30 2003/01/30 21:41:42 easysw Exp $"
+// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.31 2003/05/26 01:39:53 easysw Exp $"
//
// More Fl_File_Chooser routines.
//
@@ -403,6 +403,12 @@ Fl_File_Chooser::fileListCB()
{
// Change directories...
directory(pathname);
+
+ // Reset the click count so that a click in the same spot won't
+ // be treated as a triple-click. We use a value of -1 because
+ // the next click will increment click count to 0, which is what
+ // we really want...
+ Fl::event_clicks(-1);
}
else
{
@@ -1159,5 +1165,5 @@ unquote_pathname(char *dst, // O - Destination string
//
-// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.30 2003/01/30 21:41:42 easysw Exp $".
+// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.31 2003/05/26 01:39:53 easysw Exp $".
//