rem: if (file && file.isDirectory() && filePickerMode != nsIFilePicker.modeGetFolder) { 
add: if (file && file.isDirectory()) { 
context: function setOKAction(file) {  var buttonLabel;  var buttonIcon = "open"; // used in all but one case  if (file && file.isDirectory() && filePickerMode != nsIFilePicker.modeGetFolder) {    document.documentElement.setAttribute("ondialogaccept", "return openOnOK();");    buttonLabel = gFilePickerBundle.getString("openButtonLabel");  }  else {    document.documentElement.setAttribute("ondialogaccept", "return selectOnOK();");    switch(filePickerMode) {    case nsIFilePicker.modeGetFolder:      buttonLabel = gFilePickerBundle.getString("selectFolderButtonLabel");      break;    case nsIFilePicker.modeOpen:    case nsIFilePicker.modeOpenMultiple:      buttonLabel = gFilePickerBundle.getString("openButtonLabel");      break;    case nsIFilePicker.modeSave:      buttonLabel = gFilePickerBundle.getString("saveButtonLabel");      buttonIcon = "save";      break;    }  }  okButton.setAttribute("label", buttonLabel);  okButton.setAttribute("icon", buttonIcon);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/649f02d0edbc3e2a6ae52d15a2890b3a08c87ca3/filepicker.js/buggy/toolkit/components/filepicker/content/filepicker.js