summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser2.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-04-12 19:16:19 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-04-12 19:16:19 +0000
commit232ef4e1599b22e6d1426147ea594193d64f01a1 (patch)
treea354473490f0059350b0687ffd658a90f71a0cfd /src/Fl_File_Chooser2.cxx
parent97b806e5800da62734ba2913881d96a353e3e313 (diff)
Updated 1.3 with changes from 1.1.9
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
-rw-r--r--src/Fl_File_Chooser2.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx
index 5e9772e60..3b0562988 100644
--- a/src/Fl_File_Chooser2.cxx
+++ b/src/Fl_File_Chooser2.cxx
@@ -134,9 +134,12 @@ Fl_File_Chooser::count() {
for (i = 1, fcount = 0; i <= fileList->size(); i ++)
if (fileList->selected(i)) {
// See if this file is a directory...
- filename = (char *)fileList->text(i);
+ // matt: why would we do that? It is perfectly legal to select multiple
+ // directories in a DIR chooser. They are visually selected and value(i)
+ // returns all of them as expected
+ //filename = (char *)fileList->text(i);
- if (filename[strlen(filename) - 1] != '/')
+ //if (filename[strlen(filename) - 1] != '/')
fcount ++;
}
@@ -505,8 +508,8 @@ Fl_File_Chooser::fileNameCB()
first_line; // First matching line
const char *file; // File from directory
-
// puts("fileNameCB()");
+// printf("Event: %s\n", fl_eventnames[Fl::event()]);
// Get the filename from the text field...
filename = (char *)fileName->value();