diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-01-28 20:42:14 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-01-28 20:42:14 +0000 |
| commit | 226715d978654145c1a011fe8ebf35431774c33d (patch) | |
| tree | 5a46c136b94262846b69775f4052d1cc49ffacd2 /src/Fl_File_Chooser2.cxx | |
| parent | c25988a756ccc3e01a554840bc9195de5641243f (diff) | |
Bug fixes from Howard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index cbd5cad28..a10ac7304 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.28 2002/11/20 15:49:24 easysw Exp $" +// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.29 2003/01/28 20:42:11 easysw Exp $" // // More Fl_File_Chooser routines. // @@ -122,7 +122,7 @@ Fl_File_Chooser::count() // printf("Fl_File_Chooser::count(): filename=\"%s\"\n", filename); - if (filename == NULL || filename[0] == '\0') + if (!filename || !filename[0]) return (0); // Is the file name just the current directory? @@ -457,7 +457,7 @@ Fl_File_Chooser::fileNameCB() // Get the filename from the text field... filename = (char *)fileName->value(); - if (filename == NULL || filename[0] == '\0') { + if (!filename || !filename[0]) { okButton->deactivate(); return; } @@ -1004,7 +1004,7 @@ Fl_File_Chooser::value(int f) // I - File number if (!(type_ & MULTI)) { name = fileName->value(); - if (name[0] == '\0') return NULL; + if (!name || !name[0]) return NULL; else if (fl_filename_isdir(name)) { if (type_ & DIRECTORY) { // Strip trailing slash, if any... @@ -1159,5 +1159,5 @@ unquote_pathname(char *dst, // O - Destination string // -// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.28 2002/11/20 15:49:24 easysw Exp $". +// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.29 2003/01/28 20:42:11 easysw Exp $". // |
