Check for no icon, and if so manually check for a directory...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-02-06 19:36:10 +00:00
parent 16cc0e1f9c
commit 6492c43b4b

View File

@ -591,7 +591,8 @@ Fl_File_Browser::load(const char *directory,// I - Directory to load
files[i]->d_name);
icon = Fl_File_Icon::find(filename);
if (icon->type() == Fl_File_Icon::DIRECTORY) {
if ((icon && icon->type() == Fl_File_Icon::DIRECTORY) ||
fl_filename_isdir(filename)) {
num_dirs ++;
#if defined(WIN32) && !defined(__CYGWIN__)