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:
parent
990415bd04
commit
e1fa5dc88b
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user