Don't try to generate a preview image of a directory.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-09-24 23:37:54 +00:00
parent 990415bd04
commit e1fa5dc88b

View File

@ -943,7 +943,7 @@ Fl_File_Chooser::update_preview()
if (!previewButton->value()) return;
if ((filename = value()) == NULL) image = NULL;
if ((filename = value()) == NULL || fl_filename_isdir(filename)) image = NULL;
else {
window->cursor(FL_CURSOR_WAIT);
Fl::check();