summaryrefslogtreecommitdiff
path: root/test/file_chooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-11-20 15:49:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-11-20 15:49:24 +0000
commit5f5d68561f8b728bbabbef648d7fd818b8689df8 (patch)
tree8da338abee032b1f3ea0018ad7569882b179f499 /test/file_chooser.cxx
parent4bf99bdfc65a65ae2e8bd14b6eda32c521c8fd88 (diff)
Fl_File_Input::value("") didn't work.
The window close callback also needed to set the filename to "". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/file_chooser.cxx')
-rw-r--r--test/file_chooser.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx
index 22e8a73b7..3134c11e0 100644
--- a/test/file_chooser.cxx
+++ b/test/file_chooser.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: file_chooser.cxx,v 1.4.2.3.2.8 2002/07/14 18:19:00 easysw Exp $"
+// "$Id: file_chooser.cxx,v 1.4.2.3.2.9 2002/11/20 15:49:24 easysw Exp $"
//
// File chooser test program.
//
@@ -323,6 +323,9 @@ show_callback(void)
for (i = 1; i <= count; i ++)
{
+ if (!fc->value(i))
+ break;
+
fl_filename_relative(relative, sizeof(relative), fc->value(i));
files->add(relative,
@@ -335,5 +338,5 @@ show_callback(void)
//
-// End of "$Id: file_chooser.cxx,v 1.4.2.3.2.8 2002/07/14 18:19:00 easysw Exp $".
+// End of "$Id: file_chooser.cxx,v 1.4.2.3.2.9 2002/11/20 15:49:24 easysw Exp $".
//