mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
The file chooser didn't always deactivate the OK button when
necessary (STR #653) src/Fl_File_Chooser2.cxx: - Fl_File_Chooser::fileListCB(): deactivate OK button when the current item is not the right type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
CHANGES IN FLTK 1.1.7
|
||||
|
||||
- Documentation fixes (STR #648)
|
||||
- The file chooser didn't always deactivate the OK
|
||||
button when necessary (STR #653)
|
||||
- Image drawing on OSX changed the current drawing
|
||||
colors (STR #662)
|
||||
- Fixed some compiler errors on WIN32 (STR #647)
|
||||
|
||||
@@ -433,6 +433,8 @@ Fl_File_Chooser::fileListCB()
|
||||
// Activate the OK button as needed...
|
||||
if (!fl_filename_isdir(pathname) || (type_ & DIRECTORY))
|
||||
okButton->activate();
|
||||
else
|
||||
okButton->deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user