8025503: [macosx] FileDialog allows file selection with apple.awt.fileDialogForDirectories = true
Reviewed-by: serb, anthony
--- a/jdk/src/macosx/native/sun/awt/CFileDialog.m Fri Sep 27 14:29:27 2013 +0400
+++ b/jdk/src/macosx/native/sun/awt/CFileDialog.m Fri Sep 27 17:04:16 2013 +0400
@@ -110,7 +110,7 @@
if (fMode == java_awt_FileDialog_LOAD) {
NSOpenPanel *openPanel = (NSOpenPanel *)thePanel;
[openPanel setAllowsMultipleSelection:fMultipleMode];
- [openPanel setCanChooseFiles:YES];
+ [openPanel setCanChooseFiles:!fChooseDirectories];
[openPanel setCanChooseDirectories:fChooseDirectories];
[openPanel setCanCreateDirectories:YES];
}