fix for unix file picker not handling null window parents bug 34328 r=brendan, slamm

fix for mailnews' file->save as dialog not saving files on unix in due to its handling of file extentions and filters.  this code now uses nsIFilePicker.  fixes nsbeta2+ bug 31096. r=mscott
This commit is contained in:
pavlov%netscape.com 2006-09-14 05:50:22 +00:00
Родитель 1a806f96ed
Коммит 89566c343f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -803,7 +803,7 @@ function RevealSearchPanel()
try {
var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);
fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen);
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);
if (fp.show() == nsIFilePicker.returnOK) {
openNewWindowWith(fp.fileURL.spec);