From 01e47d8f247c9c2d41c5229ac582145a631752f7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 5 Feb 2005 23:00:59 +0000 Subject: 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 --- src/Fl_File_Chooser2.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index b615fe1ca..a53d670b0 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -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(); } } -- cgit v1.2.3