зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 76447; test for nsIFilePicker::returnOK to avoid JS error when
the user has pressed cancel; r=morse, sr=blake
This commit is contained in:
Родитель
5ffb5a39e1
Коммит
812995d720
|
@ -149,13 +149,14 @@
|
|||
filePicker.appendFilter(programsFilter, "*.exe; *.com");
|
||||
else
|
||||
filePicker.appendFilters(FP.filterAll);
|
||||
filePicker.show();
|
||||
if ( filePicker.show() == FP.returnOK ) {
|
||||
var file = filePicker.file.QueryInterface(Components.interfaces.nsILocalFile);
|
||||
gAppPath.value = file.path;
|
||||
gAppPath.select();
|
||||
selectAppRadio();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function selectAppRadio()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче