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:
parent
c279f087a1
commit
7e79bfa611
@ -533,14 +533,16 @@ Fl_File_Chooser::fileNameCB()
|
||||
#endif /* WIN32 || __EMX__ */
|
||||
directory(pathname);
|
||||
} else if ((type_ & CREATE) || access(pathname, 0) == 0) {
|
||||
// Update the preview box...
|
||||
update_preview();
|
||||
if (!fl_filename_isdir(pathname) || (type_ & DIRECTORY)) {
|
||||
// Update the preview box...
|
||||
update_preview();
|
||||
|
||||
// Do any callback that is registered...
|
||||
if (callback_) (*callback_)(this, data_);
|
||||
// Do any callback that is registered...
|
||||
if (callback_) (*callback_)(this, data_);
|
||||
|
||||
// Hide the window to signal things are done...
|
||||
window->hide();
|
||||
// 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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user