diff --git a/chrome/content/zotero/preferences/preferences_cite.js b/chrome/content/zotero/preferences/preferences_cite.js index ddb0ee574b..5e8bd44e9a 100644 --- a/chrome/content/zotero/preferences/preferences_cite.js +++ b/chrome/content/zotero/preferences/preferences_cite.js @@ -117,7 +117,11 @@ Zotero_Preferences.Cite = { var rv = fp.show(); if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) { - Zotero.Styles.install(fp.file); + Zotero.Styles.install({ file: fp.file }, fp.file.path, true) + .catch(function (e) { + (new Zotero.Exception.Alert("styles.install.unexpectedError", + fp.file.path, "styles.install.title", e)).present() + }); } },