This commit is contained in:
bzbarsky@mit.edu 2007-07-26 18:24:34 -07:00
Родитель 87ddf292a8
Коммит 325c15a53d
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -461,7 +461,13 @@ nsHelperAppDialog.prototype = {
// initAppAndSaveToDiskValues:
initAppAndSaveToDiskValues: function() {
// Fill in helper app info, if there is any.
this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler;
try {
this.chosenApp =
this.mLauncher.MIMEInfo.preferredApplicationHandler
.QueryInterface(Components.interfaces.nsILocalHandlerApp);
} catch (e) {
this.chosenApp = null;
}
// Initialize "default application" field.
this.initDefaultApp();