mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
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:
@@ -943,7 +943,7 @@ Fl_File_Chooser::update_preview()
|
|||||||
|
|
||||||
if (!previewButton->value()) return;
|
if (!previewButton->value()) return;
|
||||||
|
|
||||||
if ((filename = value()) == NULL) image = NULL;
|
if ((filename = value()) == NULL || fl_filename_isdir(filename)) image = NULL;
|
||||||
else {
|
else {
|
||||||
window->cursor(FL_CURSOR_WAIT);
|
window->cursor(FL_CURSOR_WAIT);
|
||||||
Fl::check();
|
Fl::check();
|
||||||
|
|||||||
Reference in New Issue
Block a user