Check for proper directory handling with FL_Enter (STR #787)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-04-10 22:37:04 +00:00
parent c279f087a1
commit 7e79bfa611
+2
View File
@@ -533,6 +533,7 @@ Fl_File_Chooser::fileNameCB()
#endif /* WIN32 || __EMX__ */
directory(pathname);
} else if ((type_ & CREATE) || access(pathname, 0) == 0) {
if (!fl_filename_isdir(pathname) || (type_ & DIRECTORY)) {
// Update the preview box...
update_preview();
@@ -541,6 +542,7 @@ Fl_File_Chooser::fileNameCB()
// Hide the window to signal things are done...
window->hide();
}
} else {
// File doesn't exist, so beep at and alert the user...
fl_alert(existing_file_label);